Function at 0x478030
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
pushal
mov esi, eax
mov eax, dword [esi + 0x19]
mov ecx, dword [eax]
movzx eax, bx
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x2a7]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
cmp edi, 0
je 0x47833c
mov edx, str.Binding__
mov ebp, edi
mov eax, ebp
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
cmp edx, 0
je 0x478087
mov eax, edx
call fcn.00420750
mov ebx, eax
jmp 0x47808c
mov ebx, 0
mov eax, ebp
mov ecx, edx
lea edx, [esp + 0x5c]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x4780a8
push ebp
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov ebp, dword [esp + 0x34]
movzx eax, word [ebp + 4]
mov edx, edi
mov dword [esp + 0x44], edx
lea ebx, [esp + 0x60]
mov dword [esp + 0x3c], ebx
mov ecx, 0xa
call fcn.00474948
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x3c]
cmp ecx, 0
je 0x4780f7
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x4780fc
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x74]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x478119
push dword [esp + 0x44]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov dword [esp + 0x38], 0x59eaf4
mov edx, edi
mov dword [esp + 0x48], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x38]
cmp ecx, 0
je 0x478156
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x47815b
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x78]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x478178
push dword [esp + 0x48]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
movsx eax, word [ebp + 6]
cmp eax, 1
jne 0x4781ef
mov dword [esp + 0x30], str.input
mov edx, edi
mov dword [esp + 0x4c], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x30]
cmp ecx, 0
je 0x4781be
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x4781c3
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x7c]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x4781e0
push dword [esp + 0x4c]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
jmp 0x4782bf
cmp eax, 2
jne 0x478258
mov dword [esp + 0x2c], str.in_output
mov edx, edi
mov dword [esp + 0x50], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x2c]
cmp ecx, 0
je 0x478227
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x47822c
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x80]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x47824c
push dword [esp + 0x50]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
jmp 0x4782bf
cmp eax, 4
jne 0x4782bf
mov dword [esp + 0x28], str.output
mov edx, edi
mov dword [esp + 0x54], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x28]
cmp ecx, 0
je 0x478290
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x478295
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x84]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x4782b5
push dword [esp + 0x54]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov dword [esp + 0x24], str._with_C_type
mov edx, edi
mov dword [esp + 0x58], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x24]
cmp ecx, 0
je 0x4782f2
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x4782f7
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x88]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x478317
push dword [esp + 0x58]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov eax, edi
mov bx, word [ebp + 8]
call fcn.004787ec
mov eax, esi
mov ebx, edi
mov ecx, 0x59eb28
mov dl, 1
call fcn.0047cc4c
cmp dword [0x59f9a0], 0
je 0x478388
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 0x1a]
push ebx
mov ebx, dword [eax + 0x16]
push ebx
mov ebx, dword [eax + 0x12]
push ebx
movsx ebx, word [eax + 0x10]
push ebx
mov ebx, dword [eax + 0xc]
push ebx
movsx ebx, word [eax + 0xa]
push ebx
movsx ebx, word [eax + 8]
push ebx
movsx ebx, word [eax + 6]
push ebx
movzx eax, word [eax + 4]
push eax
mov eax, dword [esi + 4]
push eax
call dword [0x59f9a0]
mov bx, ax
mov eax, esi
call fcn.0047cd04
jmp 0x4783c0
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 0x1a]
push ebx
mov ebx, dword [eax + 0x12]
push ebx
movsx ebx, word [eax + 0x10]
push ebx
mov ebx, dword [eax + 0xc]
push ebx
movsx ebx, word [eax + 0xa]
push ebx
movsx ebx, word [eax + 8]
push ebx
movzx eax, word [eax + 4]
push eax
mov eax, dword [esi + 4]
push eax
call dword [0x59f9a4]
mov bx, ax
mov eax, esi
call fcn.0047cd04
cmp edi, 0
je 0x4784b8
mov edx, 0x59eb30
call fcn.0040fbf0
sub eax, dword [0x52169c]
mov dword [esp + 0x40], eax
mov eax, edi
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
cmp edx, 0
je 0x4783fe
mov eax, edx
call fcn.00420750
mov ebx, eax
jmp 0x478403
mov ebx, 0
mov eax, edi
mov ecx, edx
lea ebp, [esp + 0x8c]
mov edx, ebp
call fcn.0051a40c
mov eax, edi
mov edx, ebp
mov ebx, 0xc
mov ecx, str._Time_Taken:
call fcn.0051a40c
mov eax, dword [esp + 0x40]
mov ebx, 0x64
cdq
idiv ebx
push edx
push eax
push str._ld._02ld_secs
push 0x5218a0
call fcn.004dbfa0
add esp, 0x10
mov eax, edi
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov eax, 0x5218a0
cmp eax, 0
je 0x478483
mov eax, 0x5218a0
call fcn.00420750
mov ebx, eax
jmp 0x478488
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x2d2], 2
je 0x478052
jmp 0x4784be
mov ebx, 0
mov eax, edi
mov edx, ebp
mov ecx, 0x5218a0
call fcn.0051a40c
mov eax, edi
mov edx, ebp
mov ebx, 2
mov ecx, 0x59eae4
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x4784b8
push edi
call sub.KERNEL32.dll_FlushFileBuffers
cmp byte [esi + 0x14], 0
jne 0x478471
popal
add esp, 0x70
ret