Function at 0x414f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x3c], edi
movzx ebx, word [edi + 6]
lea esi, [edi + 8]
mov edx, esi
mov ecx, ebx
call fcn.0051f8f0
test al, al
jne 0x414f86
push esi
push ebx
push str._DGCashShopItemGifRecv__Invalid_Account___d___s_
push 1
call fcn.005262e0
movzx eax, word [edi + 6]
add esp, 0x10
mov ecx, 0xbf3318
push eax
call fcn.00519530
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebx*4 + 0x20a514c]
xor ecx, ecx
mov dword [esp + 0x18], 0x4d205c1
mov eax, 0x57f0dc
mov dword [ebx + 0x6e8], 0
mov edx, dword [edi + 0x14]
nop dword [eax]
cmp dword [eax], edx
je 0x414fc1
add eax, 0x6c
inc ecx
cmp eax, 0x5b3c9c
jl 0x414fb0
jmp 0x414fd0
imul esi, ecx, 0x6c
add esi, 0x57f0d4
mov dword [esp + 0x30], esi
jne 0x414ff7
push 5
lea eax, [esp + 0x1c]
mov byte [esp + 0x20], 3
push eax
push dword [ebx]
call fcn.005192f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
cmp byte [edi + 0x13], 0
jne 0x414fd0
mov edx, dword [esi + 0x10]
cmp edx, dword [edi + 0x28]
jne 0x414fd0
cmp dword [edi + 0x1c], 0
jne 0x41536e
lea eax, [esi + 0x14]
mov dword [esp + 0x20], eax
cmp edx, 0x1fc
jne 0x415036
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov dword [esp + 0x28], ecx
test edx, edx
jne 0x415054
mov edx, dword [eax]
mov dword [esp + 0x28], ecx
jmp 0x415056
mov dword [esp + 0x24], 0
cmp edx, 0x1fd
jne 0x415024
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0
xor edx, edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
cmp eax, dword [edi + 0x10c]
jbe 0x41508d
push 5
lea eax, [esp + 0x1c]
mov byte [esp + 0x20], 1
push eax
push dword [ebx]
call fcn.005192f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
cmp ecx, dword [edi + 0x110]
ja 0x415066
cmp edx, dword [edi + 0x114]
ja 0x415066
push esi
call fcn.004146a0
add eax, dword [edi + 0x118]
cmp eax, 0x2d
jbe 0x4150d5
push 5
lea eax, [esp + 0x1c]
mov byte [esp + 0x20], 2
push eax
push dword [ebx]
call fcn.005192f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [edi + 0x100]
lea ecx, [ebx + 0x86]
push dword [eax]
lea eax, [edi + 0x2d]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push eax
push edx
push ecx
lea eax, [ebx + 0x7b]
push eax
push str._CashShopItemGif__PackageInfo___s___s_____GiftAccount:__s__GiftName:__s__Category:__d__BaseIndex:__d__MainIndex:__d__ItemIndex:__d__CoinIndex:__d__CoinValue:__d__BonusGP:__d_
push 6
push 0x9f30a0
call fcn.004b2600
lea eax, [esi + 0x44]
mov edx, 0xa
mov ecx, eax
mov dword [esp + 0x6c], eax
add esp, 0x38
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
nop dword [eax]
cmp dword [ecx - 0x28], 0
je 0x41522d
cmp dword [ecx], 0
jne 0x415163
mov edx, dword [eax - 0x28]
xor ecx, ecx
mov eax, 0x5b3c94
nop dword [eax]
cmp dword [eax], edx
je 0x415183
add eax, 0x4c
inc ecx
cmp eax, 0x5d8e54
jl 0x415150
xor esi, esi
jmp 0x41518c
mov edx, dword [eax]
xor ecx, ecx
mov eax, 0x5b3c98
nop dword [eax]
cmp dword [eax], edx
je 0x415183
add eax, 0x4c
inc ecx
cmp eax, 0x5d8e58
jl 0x415170
xor esi, esi
jmp 0x41518c
imul esi, ecx, 0x4c
add esi, 0x5b3c94
movd xmm0, dword [esi + 8]
lea eax, [edi + 0x38]
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [ebx + 0x86]
push eax
mov eax, dword [esp + 0x40]
push ecx
push dword [esi + 4]
push dword [esi]
push dword [eax + 8]
lea eax, [edi + 0x100]
push 0x47
push eax
push dword [ebx]
call fcn.00415f80
push dword [esi + 0x48]
lea eax, [ebx + 0x7b]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
lea esi, [ebx + 0x86]
push esi
push eax
push str._CashShopItemGif__ProductInfo___s___s_____BaseIndex:__d__MainIndex:__d__CoinValue:__d__ItemIndex:__d__ItemLevel:__d__ItemOption1:__d__ItemOption2:__d__ItemOption3:__d__ItemNewOption:__d__ItemSetOption:__d__ItemHarmonyOption:__d__ItemOptionEx:__d__ItemSocketOption:__d___d___d___d___d__ItemQuantity:__d__ItemDuration:__d_
push 6
push 0x9f30a0
call fcn.004b2600
mov eax, dword [esp + 0x94]
add esp, 0x60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
jmp 0x415233
lea esi, [ebx + 0x86]
add ecx, 4
add eax, 4
sub edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jne 0x415130
push 5
lea eax, [esp + 0x1c]
mov byte [esp + 0x20], 0
push eax
push dword [ebx]
call fcn.005192f0
mov eax, dword [ebx]
mov word [esp + 0x54], ax
mov dword [esp + 0x50], 0x31182cc1
push 0x2c
mov ecx, dword [eax*4 + 0x20a514c]
movq xmm0, qword [ecx + 0x7b]
movq qword [esp + 0x5a], xmm0
xorps xmm0, xmm0
mov ax, word [ecx + 0x83]
mov word [esp + 0x62], ax
mov al, byte [ecx + 0x85]
mov ecx, 0x7509e0
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x54]
push eax
movq qword [esp + 0x69], xmm0
mov word [esp + 0x71], 0
mov byte [esp + 0x73], 0
mov dword [esp + 0x80], 0
call fcn.00440610
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x4152fb
push 0
push eax
push 0
push 0
push ecx
push dword [ebx]
call fcn.00415ef0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push eax
lea eax, [esp + 0x48]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x4c]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x415330
cmp dword [eax + 0x10], 0x114
jle 0x415332
mov eax, ecx
cmp eax, ecx
jne 0x41535f
push 0x114
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [edi + 0x38]
mov ecx, 0xa9b7bc
lea edx, [edi + 0x2d]
push eax
jmp 0x415619
lea ecx, [eax + 0x18]
lea eax, [edi + 0x38]
push eax
lea edx, [edi + 0x2d]
jmp 0x415619
mov esi, dword [edi + 0x1c]
xor ecx, ecx
mov eax, 0x5b3c98
cmp dword [eax], esi
je 0x41539b
add eax, 0x4c
inc ecx
cmp eax, 0x5d8e58
jl 0x415378
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
imul eax, ecx, 0x4c
add eax, 0x5b3c94
mov dword [esp + 0x2c], eax
je 0x41562e
add eax, 8
mov dword [esp + 0x28], eax
cmp edx, 0x1fc
jne 0x4153d4
mov esi, dword [eax]
mov dword [esp + 0x24], esi
xor ecx, ecx
mov dword [esp + 0x20], ecx
test edx, edx
jne 0x4153ec
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
jmp 0x4153ee
xor esi, esi
mov dword [esp + 0x24], esi
cmp edx, 0x1fd
jne 0x4153c2
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
xor eax, eax
mov dword [esp + 0x38], eax
cmp esi, dword [edi + 0x10c]
ja 0x415066
cmp ecx, dword [edi + 0x110]
ja 0x415066
cmp eax, dword [edi + 0x114]
ja 0x415066
mov eax, dword [edi + 0x118]
inc eax
cmp eax, 0x2d
ja 0x4150ae
lea eax, [edi + 0x2d]
mov dword [esp + 0x34], eax
lea esi, [edi + 0x100]
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0x86]
lea edi, [ebx + 0x7b]
push dword [eax + 0x18]
push dword [eax + 0x14]
push edx
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x50]
push esi
push ecx
push edi
push str._CashShopItemGif__PackageInfo___s___s_____TargetAccount:__s__TargetName:__s__Category:__d__BaseIndex:__d__MainIndex:__d__ItemIndex:__d__CoinIndex:__d__CoinValue:__d__BonusGP:__d_
push 6
push 0x9f30a0
call fcn.004b2600
mov eax, dword [esp + 0x60]
add esp, 0x30
mov ecx, dword [esp + 0x44]
add ecx, 0x38
mov dword [esp + 0x48], ecx
movd xmm0, dword [eax]
lea eax, [ebx + 0x86]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push ecx
push eax
mov eax, dword [esp + 0x3c]
push ecx
push dword [eax + 4]
push dword [eax]
mov eax, dword [esp + 0x4c]
push dword [eax + 8]
push 0x47
push esi
push dword [ebx]
call fcn.00415f80
mov eax, dword [esp + 0x2c]
lea esi, [ebx + 0x86]
mov ecx, dword [esp + 0x28]
push dword [eax + 0x48]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
push esi
push edi
push str._CashShopItemGif__ProductInfo___s___s_____BaseIndex:__d__MainIndex:__d__CoinValue:__d__ItemIndex:__d__ItemLevel:__d__ItemOption1:__d__ItemOption2:__d__ItemOption3:__d__ItemNewOption:__d__ItemSetOption:__d__ItemHarmonyOption:__d__ItemOptionEx:__d__ItemSocketOption:__d___d___d___d___d__ItemQuantity:__d__ItemDuration:__d_
push 6
push 0x9f30a0
call fcn.004b2600
add esp, 0x60
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x18]
push 5
push eax
push dword [ebx]
call fcn.005192f0
mov eax, dword [ebx]
mov dword [esp + 0x50], 0x31182cc1
mov word [esp + 0x54], ax
mov ecx, dword [eax*4 + 0x20a514c]
movq xmm0, qword [ecx + 0x7b]
movq qword [esp + 0x56], xmm0
xorps xmm0, xmm0
mov ax, word [ecx + 0x83]
mov word [esp + 0x5e], ax
mov al, byte [ecx + 0x85]
mov ecx, 0x7509e0
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x50]
push 0x2c
push eax
movq qword [esp + 0x69], xmm0
mov word [esp + 0x71], 0
mov byte [esp + 0x73], 0
mov dword [esp + 0x80], 0
call fcn.00440610
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x4155b4
push 0
push eax
push 0
push 0
push ecx
push dword [ebx]
call fcn.00415ef0
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x114
push eax
lea eax, [esp + 0x48]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x4c]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4155e9
cmp dword [eax + 0x10], 0x114
jle 0x4155eb
mov eax, ecx
cmp eax, ecx
jne 0x41560e
push 0x114
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, 0xa9b7bc
jmp 0x415611
lea ecx, [eax + 0x18]
push dword [esp + 0x40]
mov edx, dword [esp + 0x38]
lea eax, [ebx + 0x332]
push eax
sub esp, 8
push ecx
mov ecx, esi
call fcn.00446300
add esp, 0x14
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4