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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xec]
cmp eax, 0xf3c
jge 0x49d97e
inc eax
mov dword [esp + 0x24], edi
mov dword [edi + 0xec], eax
cmp eax, 1
je 0x479751
cmp byte [edi + 0xfc], 0
mov byte [edi + 0x144], 0
jne 0x479557
lea ebx, [ebx]
cmp byte [edi + 0x144], 0
jne 0x479557
cmp byte [0x4974e3], 0
jne 0x47945b
cmp byte [0x4a8668], 0
jne 0x49d99c
mov esi, dword [0x482708]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
call esi
test eax, eax
jne 0x4796f1
cmp byte [0x4974e6], 1
je 0x49d9c4
cmp dword [edi + 0xf8], 1
je 0x49e30c
cmp dword [0x4a8624], 0
jne 0x49d9e1
cmp byte [0x4974ec], 1
je 0x49da91
cmp dword [edi + 0x460], 0
jne 0x49daab
cmp byte [0x4a863c], 0
jne 0x49dbfc
push edi
call fcn.00479381
cmp al, 1
je 0x47954a
cmp byte [0x4a87b0], 0
jne 0x49de25
mov eax, dword [edi + 0xf8]
cmp eax, 7
je 0x49dea3
cmp eax, 8
je 0x49df0e
cmp eax, 9
je 0x49df0e
cmp eax, 2
je 0x4796a0
cmp eax, 3
je 0x4796a0
cmp eax, 4
je 0x4796a0
cmp eax, 5
je 0x4796a0
cmp eax, 6
je 0x4796a0
mov ecx, dword [ebp + 8]
mov dword [edi + 0xf4], ecx
mov eax, ecx
inc ecx
mov dword [ebp + 8], ecx
cmp eax, dword [0x4a90f8]
jg 0x49e1c7
test eax, eax
jle 0x49e1c7
shl eax, 4
add eax, dword [0x4a912c]
je 0x49e1c7
mov esi, eax
mov ecx, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
movsx eax, word [edx + 8]
cmp eax, ebx
jne 0x47957f
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.0047b171
cmp byte [edi + 0xfc], 0
je 0x479401
mov eax, dword [edi + 0xec]
mov byte [edi + 0x144], 0
cmp eax, 1
je 0x47977c
dec eax
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x34
jne 0x479621
lea eax, [esp + 0x47]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebx
call fcn.00479871
test eax, eax
jne 0x4795c6
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x49e25a
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x4795eb
mov eax, dword [esi + 0xc]
dec dword [eax]
mov edx, dword [esi + 0xc]
cmp dword [edx], ebx
je 0x49e275
push esi
call fcn.004813ad
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x50]
cmp eax, 8
je 0x49e291
cmp eax, 0xa
je 0x49e2b2
cmp eax, 5
je 0x49e2c9
cmp eax, 0xb
je 0x49e2d7
cmp eax, 0xc
jne 0x47954a
jmp 0x49e2f5
dec eax
cmp eax, 0x7e
ja case.default.0x479632
movzx eax, byte [eax + 0x409614]
jmp dword [eax*4 + 0x409600]
push 0xa
call dword [0x48215c]
cmp dword [edi + 0x2f0], 0
je 0x4796d6
mov esi, dword [edi + 0x2f8]
call fcn.0047c7f1
xor ecx, ecx
cmp edx, ecx
jl 0x4796d6
mov ebx, ecx
jg 0x47975d
cmp eax, dword [edi + 0x2f0]
jae 0x47975d
mov eax, dword [edi + 0xf8]
cmp eax, 3
jl 0x47954a
jmp 0x49e091
cmp dword [esp + 0x6c], 0x12
je 0x49d9ae
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4a8630
call fcn.0047d321
test eax, eax
jne 0x479738
lea edx, [esp + 0x68]
push edx
mov ebx, 0x4a8630
call fcn.0047d341
test eax, eax
jne 0x479738
lea eax, [esp + 0x68]
push eax
call dword [0x4825b4]
lea ecx, [esp + 0x68]
push ecx
call dword [0x4826c4]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
call esi
test eax, eax
je 0x479441
jmp 0x4796f1
mov esi, edi
call fcn.00480b11
jmp 0x4793e7
cmp dword [edi + 0xf8], 2
jne 0x49e078
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], ebx
jmp 0x47954a
mov esi, edi
call fcn.0047f361
cmp byte [edi + 0xfc], 1
je 0x479574
mov ebx, edi
call fcn.00471c21
push 0
call dword [0x4826bc]
mov edx, dword [0x497518]
push edx
call dword [0x482608]
mov esi, dword [0x4826b8]
push 0
push 0
push 0
lea eax, [esp + 0x148]
push eax
call esi
test eax, eax
jle 0x479574
jmp 0x49e329