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

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x34]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
push 2
push eax
push esi
mov byte [edi + 4], 0xa
call fcn.004bee50
lea eax, [edi + 0x10]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0xc]
push 2
push ecx
push esi
call fcn.004bee50
fld dword [0x660284]
fcomp dword [0x620290]
add esp, 0x24
fnstsw ax
test ah, 1
jne 0x47848b
lea edx, [edi + 0xe]
push 2
push edx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x478491
mov word [edi + 0xe], 0xffff
push ebx
push ebp
lea eax, [edi + 0x16]
push 2
push eax
push esi
mov dword [esp + 0x3c], eax
call fcn.004bee50
lea eax, [esp + 0x28]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x36]
push 2
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x44]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [esp + 0x52]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x28]
push 1
push ecx
push esi
call fcn.004bee50
add esp, 0x48
lea edx, [edi + 0x2a]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x2c]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x30]
push 1
push ecx
push esi
call fcn.004bee50
lea ebx, [edi + 0x34]
push 4
push ebx
push esi
call fcn.004bee50
lea ebp, [edi + 0x38]
push 4
push ebp
push esi
call fcn.004bee50
lea eax, [edi + 0x3c]
push 4
push eax
push esi
mov dword [esp + 0x74], eax
call fcn.004bee50
add esp, 0x48
lea edx, [esp + 0x18]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [esp + 0x26]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x50]
push 2
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0x52]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x53]
push 1
push eax
push esi
mov dword [esp + 0x78], eax
call fcn.004bee50
lea eax, [edi + 0x54]
push 2
push eax
push esi
call fcn.004bee50
add esp, 0x48
lea ecx, [edi + 0x56]
push 1
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0x58]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x5a]
push 1
push eax
push esi
call fcn.004bee50
fld dword [0x660284]
fcomp dword [0x62028c]
add esp, 0x24
fnstsw ax
test ah, 1
jne 0x4785d1
lea ecx, [edi + 0x5b]
push 1
push ecx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x4785d5
mov byte [edi + 0x5b], 0
lea edx, [edi + 0x5c]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x5e]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x60]
push 2
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0x62]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x64]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x68]
push 4
push ecx
push esi
call fcn.004bee50
add esp, 0x48
lea edx, [edi + 0x6c]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x6d]
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x6e]
push 2
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0x70]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x84]
push 2
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x88]
push 4
push ecx
push esi
call fcn.004bee50
add esp, 0x48
lea edx, [edi + 0x93]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x94]
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x95]
push 1
push ecx
push esi
call fcn.004bee50
lea eax, [edi + 0x96]
push 1
mov dword [esp + 0x5c], eax
push eax
push esi
call fcn.004bee50
lea edx, [edi + 0x97]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x8c]
push 4
push eax
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [edi + 0x98]
mov dword [esp + 0x38], eax
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0xa4]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0xa8]
push 4
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0xac]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0xb0]
push 1
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0xb1]
push 1
push edx
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [edi + 0xb2]
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0xb3]
push 1
push ecx
push esi
call fcn.004bee50
fld dword [0x660284]
fcomp dword [0x620288]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x47877b
lea edx, [edi + 0xa0]
push 1
push edx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x478782
mov byte [edi + 0xa0], 0
fld dword [0x660284]
fcomp dword [0x620284]
fnstsw ax
test ah, 1
jne 0x4787a9
lea eax, [edi + 0xa1]
push 1
push eax
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x4787b0
mov byte [edi + 0xa1], 0
fld dword [0x660284]
fcomp dword [0x620280]
fnstsw ax
test ah, 1
jne 0x4787d7
lea ecx, [edi + 0xa2]
push 1
push ecx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x4787de
mov byte [edi + 0xa2], 0
fld dword [0x660284]
fcomp dword [0x62027c]
fnstsw ax
test ah, 1
jne 0x478841
lea edx, [edi + 0xb4]
push 1
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0xb5]
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0xb8]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [edi + 0xbc]
push 4
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0xc0]
push 4
push eax
push esi
call fcn.004bee50
add esp, 0x3c
jmp 0x47886c
mov ecx, dword [ebx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp]
mov dword [edi + 0xb8], ecx
mov ecx, dword [eax]
mov byte [edi + 0xb4], 0
mov byte [edi + 0xb5], 0
mov dword [edi + 0xbc], edx
mov dword [edi + 0xc0], ecx
lea edx, [edi + 0x90]
lea ebx, [edi + 0x78]
mov dword [esp + 0x24], edx
lea ebp, [edi + 0x72]
mov dword [esp + 0x28], 3
push 2
push ebp
push esi
call fcn.004bee50
push 4
push ebx
push esi
call fcn.004bee50
mov eax, dword [esp + 0x3c]
push 1
push eax
push esi
call fcn.004bee50
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
add esp, 0x24
add ebp, 2
add ebx, 4
inc ecx
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jne 0x478884
lea ebp, [edi + 0x9b]
push 1
push ebp
push esi
call fcn.004bee50
mov al, byte [ebp]
add esp, 0xc
test al, al
jbe 0x478969
and eax, 0xff
push 8
push eax
call fcn.005fab6a
mov dword [edi + 0x9c], eax
mov al, byte [ebp]
add esp, 8
xor ebx, ebx
test al, al
jbe 0x478973
lea ecx, [esp + 0x12]
push 2
push ecx
push esi
call fcn.004bee50
mov edx, dword [edi + 0x9c]
push 2
movsx ebp, bx
shl ebp, 3
lea eax, [edx + ebp + 4]
push eax
push esi
call fcn.004bee50
mov ecx, dword [edi + 0x9c]
push 1
lea edx, [ecx + ebp + 5]
push edx
push esi
call fcn.004bee50
mov ax, word [esp + 0x36]
add esp, 0x24
test ax, ax
jl 0x47894e
mov ecx, dword [esp + 0x48]
movsx eax, ax
mov eax, dword [ecx + eax*4]
jmp 0x478950
xor eax, eax
mov edx, dword [edi + 0x9c]
inc ebx
mov dword [edx + ebp], eax
movzx ax, byte [edi + 0x9b]
cmp bx, ax
jl 0x4788fc
jmp 0x478973
mov dword [edi + 0x9c], 0
lea ecx, [esp + 0x14]
push 2
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x22]
push 2
push edx
push esi
call fcn.004bee50
lea eax, [edi + 0x99]
push 1
push eax
push esi
call fcn.004bee50
lea ecx, [edi + 0x9a]
push 1
push ecx
push esi
call fcn.004bee50
mov ax, word [esp + 0x74]
add esp, 0x30
test ax, ax
pop ebp
pop ebx
jle 0x4789da
movsx edx, ax
push 1
push edx
call fcn.005fab6a
movsx ecx, word [esp + 0x44]
push ecx
push eax
push esi
mov dword [edi + 8], eax
call fcn.004bee50
add esp, 0x14
jmp 0x4789e1
mov dword [edi + 8], 0
fld dword [0x660284]
fcomp dword [0x620278]
fnstsw ax
test ah, 1
jne 0x478a05
lea edx, [edi + 0x12]
push 2
push edx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x478a0d
mov ax, word [edi + 0x10]
mov word [edi + 0x12], ax
fld dword [0x660284]
fcomp dword [0x620274]
fnstsw ax
test ah, 1
jne 0x478a31
lea ecx, [edi + 0x14]
push 2
push ecx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x478a39
mov dx, word [edi + 0x10]
mov word [edi + 0x14], dx
mov ax, word [esp + 0xc]
mov ecx, dword [esp + 0x44]
test ax, ax
jl 0x478a4f
movsx eax, ax
mov eax, dword [ecx + eax*4]
jmp 0x478a51
xor eax, eax
mov dword [edi + 0x40], eax
mov ax, word [esp + 0xe]
test ax, ax
jl 0x478a66
movsx edx, ax
mov eax, dword [ecx + edx*4]
jmp 0x478a68
xor eax, eax
mov dword [edi + 0x48], eax
mov ax, word [esp + 0x10]
test ax, ax
jl 0x478a7d
movsx eax, ax
mov eax, dword [ecx + eax*4]
jmp 0x478a7f
xor eax, eax
mov dword [edi + 0x44], eax
mov ax, word [esp + 0x12]
test ax, ax
jl 0x478a94
movsx edx, ax
mov eax, dword [ecx + edx*4]
jmp 0x478a96
xor eax, eax
mov dword [edi + 0x4c], eax
mov ax, word [esp + 0x14]
test ax, ax
jl 0x478aaf
mov ecx, dword [esp + 0x40]
movsx eax, ax
mov eax, dword [ecx + eax*4]
jmp 0x478ab5
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [edi + 0x18], eax
mov ax, word [esp + 0x16]
test ax, ax
jl 0x478aca
movsx edx, ax
mov eax, dword [ecx + edx*4]
jmp 0x478acc
xor eax, eax
mov dword [edi + 0x1c], eax
mov ax, word [esp + 0x18]
test ax, ax
jl 0x478ae1
movsx eax, ax
mov eax, dword [ecx + eax*4]
jmp 0x478ae3
xor eax, eax
mov dword [edi + 0x20], eax
mov ax, word [esp + 0x1a]
test ax, ax
jl 0x478af8
movsx edx, ax
mov eax, dword [ecx + edx*4]
jmp 0x478afa
xor eax, eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov ax, word [eax]
cmp ax, 5
jne 0x478b1a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov byte [ecx], 1
mov byte [edx], 0x14
cmp ax, 0x21
je 0x478b2c
cmp ax, 0x1f
je 0x478b2c
cmp ax, 5
jne 0x478b3d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0
mov dword [ecx], 0x3c23d70a
mov eax, 1
add esp, 0x30
ret 0xc