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

Disassembly:
push 0xffffffffffffffff
push 0x50a0e3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa0]
mov esi, dword [edi + 8]
sar esi, 1
push esi
lea ecx, [esp + 0x6c]
call fcn.00476970
mov eax, dword [edi + 8]
sub eax, esi
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x9c], ebx
call fcn.00476970
mov ecx, dword [edi + 8]
add ecx, ecx
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 1
call fcn.00476970
mov edx, dword [edi + 8]
add edx, edx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x9c], 2
call fcn.00476970
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 3
mov dword [esp + 0x18], eax
call fcn.00476970
mov eax, dword [edi + 8]
sub eax, esi
add eax, eax
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 4
call fcn.00476970
cmp esi, ebx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x98], 5
jle 0x47969f
mov edx, esi
mov ebp, dword [eax]
mov dword [ecx], ebp
add ecx, 4
add eax, 4
sub edx, 1
jne 0x479690
cmp esi, dword [edi + 8]
mov ecx, dword [esp + 0x44]
mov edx, esi
jge 0x4796c2
lea ebx, [ebx]
mov ebp, dword [eax]
mov dword [ecx], ebp
add edx, 1
add ecx, 4
add eax, 4
cmp edx, dword [edi + 8]
jl 0x4796b0
mov ecx, dword [edi + 8]
sub ecx, esi
cmp esi, ebx
mov eax, esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], ecx
jle 0x4796f1
mov ecx, dword [esp + 0x6c]
lea esp, [esp]
cmp dword [ecx + eax*4 - 4], ebx
jne 0x4796f1
sub eax, 1
cmp eax, ebx
mov dword [esp + 0x70], eax
jg 0x4796e0
cmp eax, ebx
jne 0x4796f9
mov dword [esp + 0x78], ebx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.0047d740
add esp, 8
test eax, eax
je 0x4798b8
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 0x55406c
mov byte [esp + 0x98], 4
mov dword [esp + 0x2c], edi
je 0x479747
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x479747
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov dword [esp + 0x54], edi
je 0x479792
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x479792
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
call fcn.004ecd7b
mov esi, dword [esp + 0x84]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x98], 2
je 0x4797d8
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x4797d8
add eax, eax
add eax, eax
push eax
push ebx
push esi
call fcn.004ed3e0
add esp, 0xc
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x98], 1
mov dword [esp + 0x18], edi
je 0x479810
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x479810
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x40], edi
je 0x47985a
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x47985a
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x68], edi
je 0x4798a5
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x4798a5
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x78]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0047d740
add esp, 8
test eax, eax
je 0x479a77
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 0x55406c
mov byte [esp + 0x98], 4
mov dword [esp + 0x2c], edi
je 0x479906
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x479906
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov dword [esp + 0x54], edi
je 0x479951
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x479951
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
call fcn.004ecd7b
mov esi, dword [esp + 0x84]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x98], 2
je 0x479997
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x479997
add eax, eax
add eax, eax
push eax
push ebx
push esi
call fcn.004ed3e0
add esp, 0xc
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x98], 1
mov dword [esp + 0x18], edi
je 0x4799cf
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4799cf
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x40], edi
je 0x479a19
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x479a19
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x68], edi
je 0x479a64
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x479a64
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x78]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00477e30
add esp, 0xc
test eax, eax
je 0x479c3e
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 0x55406c
mov byte [esp + 0x98], 4
mov dword [esp + 0x2c], edi
je 0x479acd
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x479acd
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov dword [esp + 0x54], edi
je 0x479b15
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x479b15
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
call fcn.004ecd7b
mov esi, dword [esp + 0x84]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x98], 2
je 0x479b5e
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x479b5e
lea edx, [eax*4]
push edx
push ebx
push esi
call fcn.004ed3e0
add esp, 0xc
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x98], 1
mov dword [esp + 0x18], edi
je 0x479b96
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x479b96
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x40], edi
je 0x479be0
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x479be0
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x68], edi
je 0x479c2b
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x479c2b
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x78]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call fcn.0047d740
add esp, 8
test eax, eax
je 0x479dfb
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 0x55406c
mov byte [esp + 0x98], 4
mov dword [esp + 0x2c], edi
je 0x479c8a
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x479c8a
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov dword [esp + 0x54], edi
je 0x479cd5
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x479cd5
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
call fcn.004ecd7b
mov esi, dword [esp + 0x84]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x98], 2
je 0x479d1b
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x479d1b
add eax, eax
add eax, eax
push eax
push ebx
push esi
call fcn.004ed3e0
add esp, 0xc
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x98], 1
mov dword [esp + 0x18], edi
je 0x479d53
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x479d53
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x40], edi
je 0x479d9d
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x479d9d
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x68], edi
je 0x479de8
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x479de8
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x78]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00477e30
add esp, 0xc
test eax, eax
je 0x479fc2
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 0x55406c
mov byte [esp + 0x98], 4
mov dword [esp + 0x2c], edi
je 0x479e51
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x479e51
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 3
mov dword [esp + 0x54], edi
je 0x479e99
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x479e99
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
call fcn.004ecd7b
mov esi, dword [esp + 0x84]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x98], 2
je 0x479ee2
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x479ee2
lea edx, [eax*4]
push edx
push ebx
push esi
call fcn.004ed3e0
add esp, 0xc
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x98], 1
mov dword [esp + 0x18], edi
je 0x479f1a
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x479f1a
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x40], edi
je 0x479f64
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x479f64
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x68], edi
je 0x479faf
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x479faf
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x78]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, edx
push ecx
call fcn.004784f0
add esp, 0xc
test eax, eax
je 0x47a050
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 4
call fcn.00476a60
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 3
call fcn.00476a60
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 2
call fcn.00476a60
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00476a60
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], bl
call fcn.00476a60
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.00476a60
mov eax, 0xfffffffd
jmp 0x47a129
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00477230
add esp, 8
test eax, eax
lea ecx, [esp + 0x2c]
jne 0x479fe2
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00477230
add esp, 8
test eax, eax
jne 0x479fde
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004788a0
add esp, 0xc
test eax, eax
jne 0x479fde
mov edx, dword [esp + 0xa4]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004788a0
add esp, 0xc
test eax, eax
mov byte [esp + 0x98], 4
lea ecx, [esp + 0x2c]
jne 0x479fea
call fcn.00476a60
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 3
call fcn.00476a60
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 2
call fcn.00476a60
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00476a60
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], bl
call fcn.00476a60
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.00476a60
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret