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

Disassembly:
sub esp, 0x258
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x26c]
add edi, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], 8
xor ebx, ebx
cmp byte [edi], bl
je 0x47f078
movzx eax, byte [edi]
movzx esi, byte [edi + 1]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
cmp dword [ecx + eax*4 + 0x1c0], ebx
je 0x47f070
movzx eax, byte [edi]
movzx esi, byte [edi + 1]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
mov ebp, dword [ecx + eax*4 + 0x1c0]
mov esi, dword [edx + 0x130c]
mov ecx, 1
cmp esi, ecx
mov dword [esp + 0x30], ecx
jl 0x47f070
add edx, 0x220
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
lea esp, [esp]
cmp dword [edx], ebx
je 0x47e804
inc eax
add edx, 4
cmp eax, 0x18
mov dword [esp + 0x24], eax
jl 0x47e7e0
add dword [esp + 0x14], 0x60
inc ecx
cmp ecx, esi
mov dword [esp + 0x30], ecx
jle 0x47e7cf
jmp 0x47f070
mov edx, dword [ebp + 0x30]
cmp byte [edx + 0x4b], 1
mov byte [esp + 0x13], bl
jne 0x47e817
cmp byte [ebp + 0x42], 1
je 0x47e823
mov dl, byte [edi + 2]
cmp dl, byte [ebp + 0x42]
jne 0x47e9b5
mov esi, dword [esp + 0x20]
lea edx, [ecx + ecx*2]
lea edx, [eax + edx*8]
mov dword [esi + edx*4 + 0x1c0], ebp
movzx edx, byte [edi]
movzx esi, byte [edi + 1]
lea edx, [edx + edx*2]
lea edx, [esi + edx*8]
mov esi, dword [esp + 0x18]
mov dword [esi + edx*4 + 0x1c0], ebx
xor edx, edx
mov word [esp + 0x8f], dx
mov edx, 0x701
mov word [esp + 0x78], dx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x582c]
mov dword [esp + 0x7a], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x7e], ebx
mov dword [esp + 0x82], ebx
mov dword [esp + 0x86], ebx
mov byte [esp + 0x8a], 0xff
mov byte [esp + 0x8b], 0xff
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], bl
mov byte [esp + 0x8e], bl
mov dword [esp + 0xac], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0x91], ebx
mov word [esp + 0x95], bx
mov byte [esp + 0x97], bl
mov edx, dword [edx]
mov byte [esp + 0x8b], al
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x8a], cl
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x7e], eax
mov al, byte [ebp + 0x41]
mov dword [esp + 0x86], edx
mov dl, byte [ebp + 0x40]
mov dword [esp + 0x82], ecx
movzx ecx, byte [ebp + 0x42]
mov byte [esp + 0x8d], al
mov eax, dword [ebp + 0x64]
mov byte [esp + 0x8c], dl
mov dx, word [ebp + 0x44]
mov dword [esp + 0xac], eax
mov ax, word [ebp + 0x4a]
mov byte [esp + 0x8e], cl
movzx ecx, byte [ebp + 0x68]
mov word [esp + 0x8f], dx
mov edx, dword [ebp + 0x46]
mov word [esp + 0x95], ax
lea eax, [ebp + 0x4c]
lea esi, [esp + 0x97]
mov byte [esp + 0xb0], cl
mov dword [esp + 0x91], edx
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x47e956
push 0x39
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [0x58796c]
call fcn.004ed2d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x582c]
mov al, byte [edi + 1]
mov edx, 0x702
mov word [esp + 0x38], dx
mov dl, byte [edi]
mov dword [esp + 0x3a], ecx
mov cl, byte [ebp + 0x42]
mov byte [esp + 0x3e], dl
push 9
lea edx, [esp + 0x3c]
mov byte [esp + 0x44], cl
mov ecx, dword [0x58796c]
push edx
mov byte [esp + 0x47], al
call fcn.004ed2d0
jmp 0x47ed62
mov eax, dword [0x587964]
lea esi, [eax + 0x84]
mov dword [esp + 0x14], eax
call fcn.004122a0
mov esi, eax
cmp esi, ebx
je 0x47ed62
cmp dword [esi + 0x14], ebx
jne 0x47e9e9
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x14], eax
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov byte [esi + 0x46], bl
mov byte [esi + 0x47], bl
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x4b], bl
mov byte [esi + 0x4c], bl
mov dword [esi + 0x64], ebx
mov byte [esi + 0x68], bl
lea eax, [esi + 0x4c]
xor ecx, ecx
mov word [esi + 0x44], cx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov word [esi + 0x98], bx
mov dword [esi + 0x9c], ebx
mov dl, byte [edi + 2]
sub byte [ebp + 0x42], dl
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x30]
push 0x5828e8
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x5828e0]
jb 0x47eacc
mov ecx, dword [0x5828dc]
lea edx, [esp + 0x50]
add eax, 0x7d0
push edx
mov dword [0x5828e0], eax
mov dword [0x5828d8], ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x50]
movzx ecx, word [esp + 0x52]
movzx edx, word [esp + 0x56]
sub eax, 0x10
shl eax, 4
add eax, ecx
movzx ecx, word [esp + 0x58]
shl eax, 5
add eax, edx
movzx edx, word [esp + 0x5a]
shl eax, 5
add eax, ecx
movzx ecx, word [esp + 0x5c]
shl eax, 6
add eax, edx
shl eax, 6
add eax, ecx
mov dword [0x5828e4], eax
jmp 0x47ead1
mov eax, dword [0x5828e4]
mov ecx, dword [0x5828d8]
inc ecx
xor edx, edx
mov dword [0x5828d8], ecx
shl ecx, 0x10
or eax, edx
xor edi, edi
push 0x5828e8
or edi, ecx
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [0x5827c8]
cdq
add eax, edi
adc edx, dword [esp + 0x74]
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov al, byte [ebp + 0x40]
mov byte [esi + 0x40], al
mov cl, byte [ebp + 0x41]
xor eax, eax
mov byte [esi + 0x41], cl
mov dl, byte [edi + 2]
mov word [esi + 0x44], ax
mov eax, dword [esi + 0x30]
mov byte [esi + 0x42], dl
mov byte [esi + 0x46], bl
mov byte [esi + 0x47], bl
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x4b], bl
cmp eax, ebx
je 0x47eb91
cmp byte [eax + 0x4a], bl
je 0x47eb91
movzx eax, word [eax + 0x3e]
cmp ax, bx
jbe 0x47eb91
cmp ax, 0x64
jae 0x47eb91
mov ecx, dword [str.00000000000000000000]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [0x572ba4]
mov dword [eax + 4], edx
mov ecx, dword [0x572ba8]
mov dword [eax + 8], ecx
mov edx, dword [0x572bac]
mov dword [eax + 0xc], edx
mov ecx, dword [0x572bb0]
mov dword [eax + 0x10], ecx
mov dl, byte [0x572bb4]
mov byte [eax + 0x14], dl
mov byte [esi + 0x60], bl
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x60]
movzx edx, word [esp + 0x62]
movzx eax, word [esp + 0x66]
sub ecx, 0x10
shl ecx, 4
add ecx, edx
movzx edx, word [esp + 0x68]
shl ecx, 5
add ecx, eax
movzx eax, word [esp + 0x6a]
shl ecx, 5
add ecx, edx
movzx edx, word [esp + 0x6c]
shl ecx, 6
add ecx, eax
mov eax, dword [esp + 0x30]
shl ecx, 6
add ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x64], ecx
lea ecx, [eax + eax*2]
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x20]
mov byte [esi + 0x68], 0x54
mov dword [ecx + edx*4 + 0x1c0], esi
mov ecx, dword [ecx + 0x582c]
xor edx, edx
mov word [esp + 0x8f], dx
mov edx, 0x701
mov word [esp + 0x78], dx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x7a], ecx
mov dword [esp + 0x7e], ebx
mov dword [esp + 0x82], ebx
mov dword [esp + 0x86], ebx
mov byte [esp + 0x8a], 0xff
mov byte [esp + 0x8b], 0xff
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], bl
mov byte [esp + 0x8e], bl
mov dword [esp + 0xac], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0x91], ebx
mov word [esp + 0x95], bx
mov byte [esp + 0x97], bl
mov ecx, dword [edx]
movzx edx, byte [esp + 0x24]
mov byte [esp + 0x8a], al
mov eax, dword [esi + 0x38]
mov dword [esp + 0x86], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x7e], eax
mov al, byte [esi + 0x41]
mov byte [esp + 0x8b], dl
movzx edx, byte [esi + 0x40]
mov dword [esp + 0x82], ecx
movzx ecx, byte [esi + 0x42]
mov byte [esp + 0x8d], al
mov eax, dword [esi + 0x64]
mov byte [esp + 0x8c], dl
mov dx, word [esi + 0x44]
mov dword [esp + 0xac], eax
mov ax, word [esi + 0x4a]
mov byte [esp + 0x8e], cl
movzx ecx, byte [esi + 0x68]
mov word [esp + 0x8f], dx
mov edx, dword [esi + 0x46]
mov word [esp + 0x95], ax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x97]
mov byte [esp + 0xb0], cl
mov dword [esp + 0x91], edx
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x47ed03
push 0x39
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [0x58796c]
call fcn.004ed2d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x582c]
mov al, byte [edi + 1]
mov edx, 0x702
mov word [esp + 0x44], dx
mov dl, byte [edi]
mov dword [esp + 0x46], ecx
mov cl, byte [edi + 2]
mov byte [esp + 0x4a], dl
push 9
lea edx, [esp + 0x48]
mov byte [esp + 0x50], cl
mov ecx, dword [0x58796c]
push edx
mov byte [esp + 0x53], al
call fcn.004ed2d0
mov byte [esp + 0x13], 1
mov cl, byte [edi]
mov dl, byte [edi + 1]
mov eax, 0x206
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], dl
cmp byte [esp + 0x13], bl
je 0x47ed96
mov al, byte [ebp + 0x40]
mov cl, byte [ebp + 0x41]
mov dl, byte [ebp + 0x42]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], dl
jmp 0x47eda2
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov ecx, dword [esp + 0x18]
push 7
lea eax, [esp + 0x2c]
push eax
call fcn.004ed0e0
mov edi, dword [esp + 0x18]
lea esi, [esp + 0xd8]
mov byte [esp + 0x165], bl
call fcn.00467f60
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x12f], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x133], eax
mov eax, dword [ebp + 0x30]
mov ecx, 0x406
mov word [esp + 0xd8], cx
mov ecx, dword [eax]
mov dword [esp + 0x137], ecx
mov cl, byte [edx + 2]
mov edx, dword [edi + 0x128]
mov dword [esp + 0x17a], edx
add eax, 4
lea edx, [esp + 0x13b]
mov byte [esp + 0x193], cl
mov dword [esp + 0x194], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47ee28
lea eax, [edi + 0x184]
lea edx, [esp + 0x17e]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47ee41
mov al, byte [esp + 0x30]
mov edx, dword [ebp + 0x46]
mov cl, byte [esp + 0x24]
mov byte [esp + 0x198], al
mov ax, word [ebp + 0x4a]
mov word [esp + 0x15f], ax
lea eax, [ebp + 0x4c]
mov esi, eax
neg esi
mov dword [esp + 0x15b], edx
mov byte [esp + 0x199], cl
mov dword [esp + 0x14], esi
lea edx, [esp + esi + 0x165]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47ee90
mov ecx, dword [ebp + 0x64]
push 0xc2
lea edx, [esp + 0xdc]
mov dword [esp + 0x165], ecx
mov ecx, dword [0x587974]
push edx
call fcn.004ed210
movzx ecx, byte [esp + 0x30]
movzx edx, byte [esp + 0x24]
mov eax, 0x205
mov word [esp + 0xb4], ax
movzx eax, byte [ebp + 0x40]
mov byte [esp + 0xb6], cl
movzx ecx, byte [ebp + 0x41]
mov byte [esp + 0xb7], dl
mov edx, dword [esp + 0x1c]
mov byte [esp + 0xb8], al
movzx eax, byte [edx + 2]
movzx edx, byte [ebp + 0x46]
mov byte [esp + 0xb9], cl
mov cx, word [ebp + 0x44]
mov byte [esp + 0xba], al
movzx eax, byte [ebp + 0x47]
mov word [esp + 0xbb], cx
movzx ecx, byte [ebp + 0x48]
mov byte [esp + 0xbd], dl
movzx edx, byte [ebp + 0x49]
mov byte [esp + 0xbe], al
movzx eax, byte [ebp + 0x4a]
mov byte [esp + 0xbf], cl
movzx ecx, byte [ebp + 0x4b]
mov byte [esp + 0xc0], dl
mov byte [esp + 0xc1], al
mov byte [esp + 0xc2], cl
lea eax, [ebp + 0x4c]
lea edx, [esp + esi + 0xc3]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47ef60
push 0x24
lea edx, [esp + 0xb8]
push edx
mov ecx, edi
call fcn.004ed0e0
lea esi, [esp + 0x1a0]
mov byte [esp + 0x22d], bl
call fcn.00467f60
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov esi, dword [esp + 0x18]
mov eax, 0x405
mov word [esp + 0x1a0], ax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x1fb], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1f7], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1ff], ecx
mov cl, byte [edx + 2]
mov edx, dword [esi + 0x128]
mov dword [esp + 0x242], edx
add eax, 4
lea edx, [esp + 0x203]
mov byte [esp + 0x25b], cl
mov dword [esp + 0x25c], ebx
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47eff0
lea eax, [esi + 0x184]
lea edx, [esp + 0x246]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47f010
mov eax, dword [ebp + 0x46]
mov cx, word [ebp + 0x4a]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x223], eax
mov word [esp + 0x227], cx
lea eax, [ebp + 0x4c]
lea edx, [esp + edx + 0x22d]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47f040
mov edx, dword [ebp + 0x64]
mov ecx, dword [0x587974]
push 0xc0
lea eax, [esp + 0x1a4]
push eax
mov dword [esp + 0x231], edx
call fcn.004ed210
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add edi, 3
sub dword [esp + 0x34], 1
mov dword [esp + 0x1c], edi
jne 0x47e778
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x258
ret 4