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

Disassembly:
push 0xffffffffffffffff
push 0x4a4a2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x6c]
push edi
mov eax, dword [esi + 0x70]
lea ebp, [esi + 0x68]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x84], esi
call fcn.0040f890
mov eax, dword [0x4d14fc]
mov dword [esp + 0x6c], eax
xor ebx, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0xd0], ebx
lea eax, [esp + 0x13]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0xd4], 1
call fcn.0047c7b0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 2
call fcn.0040f6a0
push ebx
push str.____div_id_giftitem__._____div__
lea ecx, [esp + 0x38]
mov byte [esp + 0xd8], 3
call fcn.00404f70
push ecx
mov byte [esp + 0xd4], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str._gift_index.php
call fcn.00495fc3
push ecx
mov byte [esp + 0xd8], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.www.kaixin001.com
call fcn.00495fc3
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 4
push ecx
lea ecx, [esi + 0x5c]
call fcn.00416700
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 6
call fcn.00496385
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x5c]
mov esi, eax
mov byte [esp + 0x5c], dl
call fcn.00404f20
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x60]
call fcn.00404fd0
mov byte [esp + 0xd0], 7
lea ecx, [esp + 0x58]
call fcn.00404ea0
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x58]
call fcn.00404ea0
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x40c05a
mov dword [esp + 0x14], ebx
jmp 0x40c064
mov ecx, dword [esp + 0x60]
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
push ecx
push esi
call fcn.004053a0
add esp, 0x18
test al, al
je 0x40c372
lea ecx, [esp + 0x70]
call fcn.0042c3d0
mov esi, dword [esp + 0x3c]
mov byte [esp + 0xd0], 8
cmp esi, ebx
je 0x40c0bd
mov ecx, dword [esp + 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
lea ecx, [esi + 0x18]
shr eax, 0x1f
add edx, eax
cmp edx, 2
jg 0x40c0c1
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xa8]
push edx
call fcn.00404b80
mov eax, dword [eax + 4]
mov byte [esp + 0xd0], 9
cmp eax, ebx
jne 0x40c0e2
mov eax, 0x4b1900
push eax
lea ecx, [esp + 0x1c]
call fcn.00495fc3
push 1
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 0xb
call fcn.00404f20
mov eax, dword [0x4d14fc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
push 0x4cc728
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0xd
call fcn.00493dd9
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call fcn.00493d3f
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 0xe
call fcn.0049608e
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 0xd
call fcn.00495f55
lea ecx, [esp + 0x27]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0047c7b0
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x80]
mov byte [esp + 0xd0], 0xf
call fcn.0040f6a0
push ebx
push str.___title__._____
lea ecx, [esp + 0x88]
mov byte [esp + 0xd8], 0x10
call fcn.00404f70
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push edx
lea eax, [esp + 0x84]
push ebx
dec ecx
push eax
lea eax, [esp + 0x94]
add ecx, edx
push eax
push ecx
push edx
mov byte [esp + 0xe8], 0x11
call fcn.004053a0
add esp, 0x18
test al, al
je 0x40c259
mov esi, dword [esp + 0x8c]
cmp esi, ebx
je 0x40c211
mov ecx, dword [esp + 0x90]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [esi + 0x18]
cmp edx, 2
jg 0x40c218
lea ecx, [esp + 0x9c]
lea edx, [esp + 0xb8]
push edx
call fcn.00404b80
mov eax, dword [eax + 4]
mov byte [esp + 0xd0], 0x12
cmp eax, ebx
jne 0x40c239
mov eax, 0x4b1900
push eax
lea ecx, [esp + 0x24]
call fcn.004960de
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0xd4], 0x11
call fcn.00404f20
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x74]
push eax
call fcn.0049608e
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0049608e
mov edi, dword [esp + 0x7c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
mov edx, dword [edi + 0x128]
push 0x146
push edx
call esi
mov ecx, dword [esp + 0x78]
mov edx, dword [edi + 0x128]
push ecx
push eax
push 0x14a
push edx
call esi
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x70]
push ecx
push eax
mov ecx, ebp
call fcn.0040f6b0
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x40c2d9
mov ecx, dword [esp + 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [esi + 0x18]
cmp edx, 2
jg 0x40c2dd
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x84]
mov esi, dword [eax + 4]
cmp ecx, ebx
mov byte [esp + 0xd0], 0xf
je 0x40c2f8
call fcn.00404170
lea ecx, [esp + 0x88]
mov byte [esp + 0xd0], 0xd
call fcn.00404fa0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 0xc
call fcn.00495f55
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], 0xb
call fcn.00495f55
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 8
call fcn.00495f55
lea ecx, [esp + 0x70]
mov byte [esp + 0xd0], 7
call fcn.0042c3f0
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
push eax
push esi
call fcn.004053a0
add esp, 0x18
test al, al
jne 0x40c086
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], 6
call fcn.00404f20
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 4
call fcn.00495f55
mov eax, dword [esp + 0x34]
mov byte [esp + 0xd0], 2
cmp eax, ebx
je 0x40c3c7
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edx, ecx
test edx, edx
jne 0x40c3c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, esi
call fcn.00404b20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xd8], 1
call fcn.00410f40
mov eax, dword [esp + 0x3c]
push eax
call fcn.00495cbf
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xd0], bl
call fcn.00495f55
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd0], 0xffffffff
call fcn.00495f55
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc4
ret