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

Disassembly:
push 0xffffffffffffffff
push 0x5919bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x9c]
mov ecx, 1
test eax, eax
mov dword [esp + 0x90], ecx
je 0x47934e
mov ebp, dword [esp + 0xa0]
test ebp, ebp
je 0x47934e
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x4788ec
cmp eax, ecx
je 0x4788ec
test eax, eax
jne 0x4788f6
mov ebp, dword [ebp + 4]
mov dword [esp + 0xa0], ebp
mov eax, dword [ebp + 0xc]
mov ebx, 3
sub eax, ebx
je 0x4792cf
dec eax
je 0x47925c
dec eax
jne 0x479317
mov word [esp + 0x78], 2
mov word [esp + 0x80], cx
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
mov byte [esp + 0x94], 2
call fcn.004568b0
mov esi, dword [eax]
push 0xc
mov byte [esp + 0x94], bl
call fcn.00557770
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x90], 4
je 0x478964
push esi
mov ecx, eax
call fcn.00442e80
jmp 0x478966
xor eax, eax
test eax, eax
mov byte [esp + 0x90], bl
mov dword [esp + 0x10], eax
jne 0x47897f
push 0x8007000e
call fcn.00548e7c
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 6
call fcn.0055711e
mov dword [esp + 0x14], 0
push ecx
mov byte [esp + 0x94], 7
mov dword [esp + 0x24], esp
mov esi, esp
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x94], 8
je 0x4789cf
push 0x602204
mov ecx, eax
call fcn.00442e80
jmp 0x4789d1
xor eax, eax
test eax, eax
mov byte [esp + 0x94], 7
mov dword [esi], eax
jne 0x4789e9
push 0x8007000e
call fcn.00548e7c
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00467230
lea eax, [esp + 0x80]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa0], 7
call fcn.00479d50
mov ecx, eax
call fcn.0047b100
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push edx
call fcn.00479d90
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x478a3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x478a51
push 0x80004003
call fcn.00548e7c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0047ab40
mov eax, dword [esp + 0x30]
test eax, eax
je 0x478a75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ecx, ebp
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004568b0
mov ecx, dword [0x602b64]
call fcn.0048f7c0
mov edi, eax
mov eax, dword [0x5fd774]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
test edi, edi
mov byte [esp + 0x90], 0xb
je 0x478db3
mov ebx, dword [edi + 0x10]
neg ebx
sbb ebx, ebx
test ebx, ebx
je 0x478db3
jmp 0x478ac3
mov edi, dword [esp + 0x20]
cmp ebx, 0xffffffff
mov esi, ebx
jne 0x478ae4
mov edx, dword [edi + 0xc]
xor eax, eax
test edx, edx
jbe 0x478ae4
mov ecx, dword [edi + 8]
mov esi, dword [ecx]
test esi, esi
jne 0x478ae4
inc eax
add ecx, 4
cmp eax, edx
jb 0x478ad6
mov ebp, dword [esi]
test ebp, ebp
jne 0x478b09
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xc]
inc eax
cmp eax, edx
jae 0x478b09
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
mov ebp, dword [ecx]
test ebp, ebp
jne 0x478b09
inc eax
add ecx, 4
cmp eax, edx
jb 0x478afb
lea edx, [esi + 8]
lea ecx, [esp + 0x24]
push edx
mov ebx, ebp
call fcn.00557257
mov edi, dword [esi + 0xc]
test edi, edi
je 0x478da0
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x10]
call fcn.00442e30
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x90], 0xc
je 0x478b53
push esi
mov ecx, eax
call fcn.00442e80
jmp 0x478b55
xor eax, eax
push ecx
mov dword [esp + 0x14], eax
mov ecx, esp
mov dword [esp + 0x48], esp
test eax, eax
mov dword [ecx], eax
je 0x478b70
add eax, 8
push eax
call dword [0x5e96f0]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0x98], 0xb
call fcn.00479d50
mov ecx, eax
call fcn.0047b040
mov eax, dword [edi + 0x10]
mov byte [esp + 0x90], 0xe
mov esi, 0x602204
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x478bc4
test cl, cl
je 0x478bc0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x478bc4
add eax, 2
add esi, 2
test cl, cl
jne 0x478ba0
xor eax, eax
jmp 0x478bc9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x478c38
mov eax, dword [edi + 0x20]
test eax, eax
je 0x478c07
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x10]
mov esi, dword [eax + 8]
call fcn.00442e30
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x90], 0xf
je 0x478c68
push esi
mov ecx, eax
call fcn.00442e80
jmp 0x478c6a
lea ecx, [esp + 0x10]
call fcn.00442e30
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x90], 0x10
je 0x478c68
push 0x602204
mov ecx, eax
call fcn.00442e80
jmp 0x478c6a
mov edi, dword [edi + 0x10]
lea ecx, [esp + 0x10]
call fcn.00442e30
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x90], 0x11
je 0x478c68
push edi
mov ecx, eax
call fcn.00442e80
jmp 0x478c6a
xor eax, eax
test eax, eax
mov byte [esp + 0x90], 0xe
mov dword [esp + 0x10], eax
mov word [esp + 0x48], 8
je 0x478c85
mov esi, dword [eax]
jmp 0x478c87
xor esi, esi
push esi
call dword [0x5e9078]
push eax
push esi
call dword [0x5e9074]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x478ca8
push 0x8007000e
call fcn.00548e7c
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x90], 0x12
test eax, eax
jne 0x478cc6
push 0x80004003
call fcn.00548e7c
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov esi, eax
mov dword [edx], edi
mov edi, dword [esp + 0x60]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x64]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x68]
mov dword [edx + 0xc], edi
call dword [ecx + 0x7c]
test eax, eax
jge 0x478cfe
push 0x5f2950
push esi
push eax
call fcn.00548e8a
lea eax, [esp + 0x48]
mov byte [esp + 0x90], 0xe
push eax
call dword [0x5e9060]
test eax, eax
jge 0x478d1b
push eax
call fcn.00548e7c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x478d2d
push 0x80004003
call fcn.00548e7c
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004642d0
mov esi, eax
mov eax, dword [esi]
mov byte [esp + 0x90], 0x13
test eax, eax
jne 0x478d55
push 0x80004003
call fcn.00548e7c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0047ad30
mov eax, dword [esp + 0x34]
test eax, eax
je 0x478d74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x90], 0xe
test eax, eax
je 0x478d8a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x90], 0xb
test eax, eax
je 0x478da0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebp, ebp
jne 0x478abf
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 4]
mov ebx, dword [esp + 0xa4]
test eax, eax
je 0x478df8
push ebx
mov ecx, ebp
call fcn.00472980
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00479d70
mov ecx, dword [esp + 0x28]
call fcn.00478890
mov eax, dword [ebp + 8]
test eax, eax
je 0x478e36
push ebx
mov ecx, ebp
call fcn.00472990
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00479d70
mov ecx, dword [esp + 0x28]
call fcn.00478890
test edi, edi
je 0x4791d3
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x44]
push ecx
push eax
mov ecx, 0x602bb0
call fcn.00437ef0
xor esi, esi
cmp eax, esi
jne 0x478fc7
mov ebp, dword [esp + 0x20]
lea edx, [esp + 0x20]
push edx
mov ecx, 0x602bb0
mov edi, dword [ebp + 0x20]
push edi
call fcn.00437ef0
mov esi, eax
test esi, esi
jne 0x478ecb
mov eax, dword [0x602bb4]
test eax, eax
jne 0x478e93
mov eax, dword [0x602bb8]
push 1
push eax
mov ecx, 0x602bb0
call fcn.004fc100
mov ecx, 0x602bb0
call fcn.004fd1a0
mov ecx, dword [esp + 0x20]
mov esi, eax
push edi
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
call fcn.005572a7
mov edx, dword [0x602bb4]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
mov dword [esi], ecx
mov edx, dword [0x602bb4]
mov eax, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x478f11
cmp dword [ebp + 0x24], 2
je 0x478f11
push ebx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00479d70
mov ecx, dword [esp + 0x28]
call fcn.00478890
jmp 0x478f41
push ebx
push ebp
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00479d70
mov ecx, dword [esp + 0x28]
call fcn.00479390
mov eax, dword [0x602bb4]
mov ebx, dword [ebp + 0x20]
test eax, eax
je 0x4791d3
push ebx
call fcn.0054e5d1
xor edx, edx
mov ecx, dword [0x602bb4]
div dword [0x602bb8]
mov edi, dword [ecx + edx*4]
test edi, edi
lea ebp, [ecx + edx*4]
je 0x4791d3
mov eax, dword [edi + 8]
mov esi, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x478f9c
test cl, cl
je 0x478f98
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x478f9c
add eax, 2
add esi, 2
test cl, cl
jne 0x478f78
xor eax, eax
jmp 0x478fa1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x478fb2
mov ebp, edi
mov edi, dword [edi]
test edi, edi
jne 0x478f73
jmp 0x4791d3
mov eax, dword [edi]
push edi
mov ecx, 0x602bb0
mov dword [ebp], eax
call fcn.00457dd0
jmp 0x4791d3
mov dword [esp + 0x18], esi
mov word [esp + 0x68], 2
mov word [esp + 0x70], 8
mov ecx, dword [esp + 0x10]
mov bl, 0x15
cmp ecx, esi
mov byte [esp + 0x90], bl
je 0x478ff3
call fcn.004640b0
mov dword [esp + 0x10], esi
push 0xc
call fcn.00557770
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, esi
mov byte [esp + 0x90], 0x16
je 0x47901b
push 0x5f40d4
mov ecx, eax
call fcn.00442e80
jmp 0x47901d
xor eax, eax
push ecx
mov byte [esp + 0x94], bl
mov dword [esp + 0x48], esp
mov esi, esp
push 0xc
mov dword [esp + 0x18], eax
call fcn.00557770
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x94], 0x17
je 0x479057
push 0x602204
mov ecx, eax
call fcn.00442e80
jmp 0x479059
xor eax, eax
test eax, eax
mov byte [esp + 0x94], bl
mov dword [esi], eax
jne 0x479070
push 0x8007000e
call fcn.00548e7c
push ecx
mov byte [esp + 0x98], 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x602204
call fcn.00442d90
lea ecx, [esp + 0x70]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa0], bl
call fcn.00479d50
mov ecx, eax
call fcn.0047b100
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
call fcn.00479d90
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4790c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov word [esp + 0x58], 8
test eax, eax
je 0x4790da
mov esi, dword [eax]
jmp 0x4790dc
xor esi, esi
push esi
call dword [0x5e9078]
push eax
push esi
call dword [0x5e9074]
test eax, eax
mov dword [esp + 0x60], eax
jne 0x4790fd
push 0x8007000e
call fcn.00548e7c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 0x1a
test eax, eax
jne 0x47911b
push 0x80004003
call fcn.00548e7c
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
push eax
mov esi, eax
mov dword [ecx], edi
mov edi, dword [esp + 0x70]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x74]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x78]
mov dword [ecx + 0xc], edi
call dword [edx + 0x7c]
test eax, eax
jge 0x479153
push 0x5f2950
push esi
push eax
call fcn.00548e8a
mov esi, dword [0x5e9060]
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x94], bl
call esi
test eax, eax
jge 0x479171
push eax
call fcn.00548e7c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x479183
push 0x80004003
call fcn.00548e7c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0047ab40
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4791a4
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x68]
mov byte [esp + 0x90], 0x14
push eax
call esi
test eax, eax
jge 0x4791bd
push eax
call fcn.00548e7c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 0xb
test eax, eax
je 0x4791d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 7
call fcn.0055711e
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 6
test eax, eax
je 0x4791fa
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x90], 2
test eax, eax
je 0x479236
mov esi, eax
add eax, 8
push eax
call dword [0x5e96f4]
test eax, eax
jne 0x47922e
test esi, esi
je 0x47922e
mov ecx, esi
call fcn.00442ec0
push esi
call fcn.00557799
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x78]
mov byte [esp + 0x90], 1
push eax
call dword [0x5e9060]
test eax, eax
jge 0x479317
push eax
call fcn.00548e7c
jmp 0x479317
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0xa4]
test eax, eax
je 0x4792a2
push esi
mov ecx, ebp
call fcn.00472980
push eax
push ecx
lea edx, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00479d70
mov ecx, edi
call fcn.00478890
mov eax, dword [ebp + 8]
test eax, eax
je 0x479317
push esi
mov ecx, ebp
call fcn.00472990
push eax
push ecx
lea edx, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
jmp 0x479301
mov eax, dword [ebp + 4]
test eax, eax
je 0x479317
mov ecx, dword [esp + 0xa4]
push ecx
mov ecx, ebp
call fcn.00472980
push eax
push ecx
lea edx, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00479d70
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
lea eax, [esp + 0xa8]
push eax
call fcn.00479d70
mov ecx, dword [esp + 0x28]
call fcn.00478890
mov eax, dword [esp + 0x98]
mov byte [esp + 0x90], 0
test eax, eax
je 0x479330
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], 0xffffffff
test eax, eax
je 0x479366
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x479366
lea ecx, [esp + 0x98]
call fcn.0048dcc0
lea ecx, [esp + 0x9c]
call fcn.0048dcc0
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret 0x10