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

Disassembly:
push 0xffffffffffffffff
push 0x49d731
mov eax, dword fs:[0]
push eax
mov eax, 0x38e8
mov dword fs:[0], esp
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
mov dword [esp + 0x38e8], eax
mov eax, dword [esp + 0x3904]
push ebp
push esi
mov esi, dword [esp + 0x3904]
mov ebx, ecx
mov ecx, dword [esp + 0x3910]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2e8]
test eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], 0
je 0x407bfe
mov ecx, dword [esi + 0x2ec]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 5
add ebx, 0x2c
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
push edi
lea ecx, [ecx]
lea ebp, [ebx + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x407c39
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x921f64bf
imul ecx
add edx, ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, dword [ebx + 0x18]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, dword [esp + 0x18]
jge 0x407ca7
push 0x3f000000
call fcn.0048dfe0
add esp, 4
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x407c81
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x921f64bf
imul ecx
add edx, ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, dword [ebx + 0x18]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x52f0ec]
push ebp
push str.m_commandQueue_size___d_sleep
push edx
call fcn.0048dda0
add esp, 0xc
jmp 0x407c10
xor ebp, ebp
push ebp
call fcn.0047f0fc
mov dword [esi + 0x2fc], eax
mov eax, dword [esi + 0x25c]
add esp, 4
cmp eax, ebp
mov ebx, 0x10
jge 0x407cf7
cmp dword [esi + 0x2d0], ebx
jb 0x407cd7
mov eax, dword [esi + 0x2bc]
jmp 0x407cdd
lea eax, [esi + 0x2bc]
push eax
mov eax, dword [0x52f0ec]
push str.user___s__onlime_time___0__modify_to_0_n
push eax
call fcn.0048dda0
add esp, 0xc
mov dword [esi + 0x25c], ebp
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], ebp
mov byte [esp + 0xcc], 0
mov edx, dword [esi + 0x1b4]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x104]
mov ecx, dword [esi]
mov dword [esp + 0x48], edx
mov dx, word [esi + 0x200]
mov dword [esp + 0x4c], eax
mov ax, word [esi + 0x202]
mov dword [esp + 0x44], ecx
mov cx, word [esi + 0x1fe]
mov word [esp + 0x52], dx
mov edx, dword [esi + 0x208]
mov word [esp + 0x54], ax
mov eax, dword [esi + 0x20c]
mov word [esp + 0x50], cx
mov ecx, dword [esi + 0x204]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x214]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x218]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x210]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x220]
mov dword [esp + 0x6c], eax
mov ax, word [esi + 0x224]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x21c]
mov dword [esp + 0x74], edx
mov dx, word [esi + 0x228]
mov word [esp + 0x78], ax
mov ax, word [esi + 0x22a]
mov dword [esp + 0x70], ecx
mov cx, word [esi + 0x226]
mov word [esp + 0x7c], dx
mov edx, dword [esi + 0x234]
mov word [esp + 0x7e], ax
mov eax, dword [esi + 0x238]
mov word [esp + 0x7a], cx
mov cx, word [esi + 0x22c]
mov dword [esp + 0x84], edx
lea edx, [esp + 0xc8]
mov dword [esp + 0x88], eax
mov word [esp + 0x80], cx
mov cx, word [esi + 0x23c]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x3908], ebp
mov word [esp + 0x48], 2
mov word [esp + 0x94], cx
call fcn.00446000
mov eax, dword [esi + 0x254]
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebp
mov edi, 1
mov byte [esp + 0xf4], 0
mov dword [esp + 0xe4], edi
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], ebp
jne 0x407e78
mov dword [esp + 0x28], 0x4aa28a
jmp 0x407eaa
mov edx, dword [esi + 0x258]
mov ecx, dword [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00406800
cmp dword [eax + 0x18], ebx
mov dword [esp + 0x24], edi
jb 0x407ea3
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
jmp 0x407eaa
add eax, 4
mov dword [esp + 0x28], eax
cmp dword [esp + 0xe0], ebx
jb 0x407ec0
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x38], edx
jmp 0x407ecb
lea eax, [esp + 0xcc]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x1f8], ebx
jb 0x407edf
mov ecx, dword [esi + 0x1e4]
mov dword [esp + 0x2c], ecx
jmp 0x407ee9
lea edx, [esi + 0x1e4]
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x190], ebx
jb 0x407efd
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x34], eax
jmp 0x407f07
lea ecx, [esi + 0x17c]
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x174], ebx
jb 0x407f1b
mov edx, dword [esi + 0x160]
mov dword [esp + 0x30], edx
jmp 0x407f25
lea eax, [esi + 0x160]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x158], ebx
jb 0x407f39
mov ecx, dword [esi + 0x144]
mov dword [esp + 0x14], ecx
jmp 0x407f43
lea edx, [esi + 0x144]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x100], ebx
jb 0x407f57
mov eax, dword [esi + 0xec]
mov dword [esp + 0x18], eax
jmp 0x407f61
lea ecx, [esi + 0xec]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0xc8], ebx
jb 0x407f71
mov ebp, dword [esi + 0xb4]
jmp 0x407f77
lea ebp, [esi + 0xb4]
cmp dword [esi + 0x74], ebx
jb 0x407f81
mov edi, dword [esi + 0x60]
jmp 0x407f84
lea edi, [esi + 0x60]
mov ebx, dword [esi]
push ebx
mov ebx, dword [esi + 0x270]
push ebx
mov ebx, dword [esp + 0x30]
push ebx
mov ebx, dword [esi + 0x2e0]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
mov ebx, dword [esi + 0x264]
push ebx
movzx ebx, byte [esi + 0x260]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
mov ebx, dword [esi + 0x1dc]
push ebx
mov ebx, dword [esi + 0x1d4]
push ebx
mov ebx, dword [esi + 0x1d8]
push ebx
movsx ebx, word [esi + 0x23c]
push ebx
movsx ebx, word [esi + 0x200]
push ebx
mov ebx, dword [esi + 0x25c]
push ebx
mov ebx, dword [esi + 0x238]
push ebx
mov ebx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x58]
push ebx
mov ebx, dword [esi + 0x234]
push ebx
movsx ebx, word [esi + 0x202]
push ebx
movsx ebx, word [esi + 0x1fc]
push ebx
mov ebx, dword [esi + 0x104]
push ebx
mov ebx, dword [esp + 0x70]
push ebx
movsx ebx, word [esi + 0x22c]
push ebp
push ebx
movsx ebx, word [esi + 0x22a]
push ebx
movsx ebx, word [esi + 0x228]
mov eax, dword [esi + 0x208]
mov ecx, dword [esi + 0x218]
push ebx
movsx ebx, word [esi + 0x224]
mov edx, dword [esi + 0x214]
push ebx
movsx ebx, word [esi + 0x226]
push ebx
mov ebx, dword [esi + 0x220]
push eax
push ecx
push edx
push ebx
mov ebx, dword [esi + 0x21c]
push ebx
mov ebx, dword [esi + 0x210]
push ebx
mov ebx, dword [esi + 0x20c]
push ebx
push eax
mov eax, dword [esi + 0x204]
push eax
push ecx
push edx
push edi
lea ecx, [esp + 0x198]
push str.UPDATE__user__SET_Scene_s_HP_d_MP_d_Level_d_EXP_d_AP_d_SP_d_X_d_Y_d_HP_d_MP_d_EXP_d_Str_d_Con_d_Dex_d__Int__d_Hit_d_Skills_s_Items_s_Gold_d_ActorID_d_Faction_d_PK_d_Shortcut_s_Config_s_Task_s_LastUpdateDateNOW___Credit_d_OnlineTime_d_MetierLevel_d_ClearCnt_d_DungeonTID_d_DungeonUID_d_DungeonQuit_d_DungeonTask_s_InWarfield_d_WarfieldQuit_d_UsData_s_WithdrawMPGift_d_MyData_s_Lottery_d_WHERE_ID_d_LIMIT_1
push ecx
call fcn.0047f034
mov al, byte [esp + 0xd0]
add esp, 0xac
test al, 1
je 0x4080ba
cmp dword [esp + 0xa8], 0x10
jb 0x4080ba
mov edx, dword [esp + 0x94]
push edx
call fcn.0047e60d
add esp, 4
mov al, byte [esp + 0x390c]
xor ebx, ebx
cmp al, bl
je 0x4080e0
mov edi, dword [esp + 0x20]
push 1
push ebx
push ebx
lea eax, [esp + 0x100]
push eax
mov ecx, edi
call fcn.00404890
jmp 0x4080f5
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004054e0
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x2e8]
cmp eax, ebx
je 0x408302
mov ecx, dword [esi + 0x2ec]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
je 0x408302
xor ebp, ebp
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi + 0x2e8]
cmp eax, ebx
jne 0x40813e
xor eax, eax
jmp 0x408157
mov ecx, dword [esi + 0x2ec]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jge 0x408280
mov eax, dword [esi + 0x2e8]
mov ecx, dword [edi + eax]
push ecx
call fcn.0040dbe0
mov ecx, eax
call fcn.0040def0
test al, al
jne 0x4081a1
mov edx, dword [0x52f0ec]
push str.Can_NOT_remove_data_from_Gift_DB__n
push edx
call fcn.0048dda0
push 0x1a3
push str..gw_database.cpp
push 0x4aa9d4
call fcn.0048df80
add esp, 0x14
mov eax, dword [esi + 0x2ac]
push eax
mov ecx, 0x4d8ac8
call fcn.0042b7f0
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
cmp eax, ebx
mov byte [esp + 0x3900], 1
je 0x4081ec
push 0xffffffffffffffff
push ebx
add eax, 0x288
push eax
lea ecx, [esp + 0x9c]
call fcn.004017d0
mov eax, dword [esi + 0x2e8]
cmp dword [edi + eax + 0x28], 0x10
jb 0x4081ff
mov ecx, dword [edi + eax + 0x14]
jmp 0x408203
lea ecx, [edi + eax + 0x14]
cmp dword [esp + 0xa8], 0x10
mov edx, dword [esp + 0x94]
jae 0x40821b
lea edx, [esp + 0x94]
push 0x4aa28a
push ebx
push 0x4aa28a
push ebx
push ecx
mov ecx, dword [edi + eax + 0xc]
push ecx
push edx
mov edx, dword [esi]
push edx
push 0x19
mov ecx, 0x4d8ac8
call fcn.0042ab80
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0x3900], bl
jb 0x40825e
mov eax, dword [esp + 0x94]
push eax
call fcn.0047e60d
add esp, 4
inc ebp
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
add edi, 0x50
jmp 0x408130
mov edi, dword [esi + 0x2e8]
cmp edi, ebx
je 0x4082ec
mov ebp, dword [esi + 0x2ec]
cmp edi, ebp
je 0x4082dd
add edi, 0x4c
cmp dword [edi], 0x10
jb 0x4082a8
mov eax, dword [edi - 0x14]
push eax
call fcn.0047e60d
add esp, 4
mov dword [edi], 0xf
mov dword [edi - 4], ebx
mov byte [edi - 0x14], bl
cmp dword [edi - 0x24], 0x10
jb 0x4082c6
mov eax, dword [edi - 0x38]
push eax
call fcn.0047e60d
add esp, 4
mov dword [edi - 0x24], 0xf
mov dword [edi - 0x28], ebx
mov byte [edi - 0x38], bl
add edi, 0x50
lea ecx, [edi - 0x4c]
cmp ecx, ebp
jne 0x408297
mov eax, dword [esi + 0x2e8]
push eax
call fcn.0047e60d
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esi + 0x2e8], ebx
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], ebx
mov eax, dword [esi + 0x1b0]
mov ebp, 0x10
cmp eax, ebp
jb 0x408319
mov eax, dword [esi + 0x19c]
jmp 0x40831f
lea eax, [esi + 0x19c]
mov edx, dword [esi + 0x2ac]
mov ecx, dword [esi + 0x268]
push edx
mov edx, dword [esi + 0x1b4]
push ecx
push edx
push eax
lea eax, [esp + 0x104]
push str.UPDATE_T_bank_SET_Items_s__BankMoney_d__Point_d_WHERE_AccountID_d
push eax
call fcn.0047f034
mov al, byte [esp + 0x3924]
add esp, 0x18
cmp al, bl
je 0x40836e
push 1
push ebx
push ebx
lea ecx, [esp + 0x100]
push ecx
mov ecx, edi
call fcn.00404890
test al, al
je 0x408385
jmp 0x40837f
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xe4]
push edx
call fcn.004054e0
mov byte [esi + 0x320], bl
cmp dword [esi + 0x28c], ebp
jb 0x408395
mov eax, dword [esi + 0x278]
jmp 0x40839b
lea eax, [esi + 0x278]
mov ecx, dword [esi]
push ecx
push eax
lea edx, [esp + 0xfc]
push str.UPDATE_userExtra_SET_LostItems_s_WHERE_ActorID_d
push edx
call fcn.0047f034
mov al, byte [esp + 0x391c]
add esp, 0x10
cmp al, bl
je 0x4083d4
push 1
push ebx
push ebx
lea eax, [esp + 0x100]
push eax
mov ecx, edi
call fcn.00404890
jmp 0x4083e5
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004054e0
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
lea edx, [esi + 0x108]
push edx
lea eax, [esp + 0xb0]
push eax
mov ecx, edi
mov byte [esp + 0x3908], 2
call fcn.00405f00
cmp dword [esp + 0xc4], ebp
mov eax, dword [esp + 0xb0]
jae 0x408433
lea eax, [esp + 0xb0]
mov ecx, dword [esi]
push ecx
push eax
lea edx, [esp + 0xfc]
push str.UPDATE_community_SET_Friend___s_WHERE_UserID_d
push edx
call fcn.0047f034
mov al, byte [esp + 0x391c]
add esp, 0x10
cmp al, bl
mov byte [esp + 0x13], 1
je 0x408471
push 1
push ebx
push ebx
lea eax, [esp + 0x100]
push eax
mov ecx, edi
call fcn.00404890
jmp 0x4084a1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x40847e
mov eax, fcn.00401000
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
call fcn.004054e0
mov byte [esp + 0x13], al
cmp dword [esp + 0xc4], ebp
mov dword [esi + 0x2f8], ebx
pop edi
jb 0x4084c1
mov edx, dword [esp + 0xac]
push edx
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0xdc]
pop esi
cmp eax, ebp
pop ebp
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov dword [esp + 0xb8], 0xf
pop ebx
jb 0x4084f8
mov eax, dword [esp + 0xbc]
push eax
call fcn.0047e60d
add esp, 4
mov ecx, dword [esp + 0x38e8]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x38e4]
xor ecx, esp
call fcn.0047ece2
add esp, 0x38f4
ret 0x10