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

Disassembly:
sub esp, 0x70
push ebx
mov ebx, dword [esp + 0x78]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
push ebp
push esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 4
mov dword [esp + 0x28], ecx
mov ecx, dword [ecx + 4]
mov ebp, dword [eax + ecx + 0x54]
push edi
lea edi, [eax + ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
test ebp, ebp
je 0x480500
mov dword [esp + 0x14], ebp
jmp 0x480596
test byte [eax + 0x2c], 0x20
je 0x480514
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ebp, ecx
jmp 0x480596
push 0x3c
lea edx, [esp + 0x48]
push 0
push edx
call fcn.004aaf30
mov eax, 1
mov word [esp + 0x82], ax
mov ecx, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
mov dword [esp + 0x5c], eax
mov word [esp + 0x84], cx
mov dword [esp + 0x54], edx
mov byte [esp + 0x86], 5
mov cx, word [eax + 0x2a]
mov word [esp + 0x80], cx
mov dx, word [eax + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + 0x30], dx
mov word [esp + 0x32], ax
test byte [edi + 0x28], 1
jne 0x480588
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx + 8]
mov dword [esp + 0x58], edx
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x1c]
cmp cx, 0xa
mov dword [esp + 0x40], ecx
jg 0x4805ae
mov dword [esp + 0x34], 0
jmp 0x4805cb
movsx eax, cx
cdq
push edx
push eax
call fcn.004244e0
add esp, 8
sub ax, 0x21
movzx ecx, ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
cmp dword [ebx + 0x10], 0
jne 0x4806f8
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
mov edx, dword [ecx]
test dword [edx + 0x18], 0x100000
je 0x4806f8
cmp dword [edi + 0x4c], 0
jne 0x4806f8
test byte [edi + 0x28], 0xf
jne 0x4806f8
test byte [eax + 0x2c], 0x20
jne 0x4806f8
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea edx, [eax + eax*2]
shl edx, 4
add edx, edi
mov dword [esp + 0x38], edx
mov edi, edi
cmp edi, edx
jae 0x4806de
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4806c4
push eax
push eax
mov eax, dword [esp + 0x28]
mov ecx, edi
call fcn.0047ca40
add esp, 8
test eax, eax
je 0x4806c0
mov eax, 1
mov edx, eax
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x2c]
xor ecx, ecx
mov word [esi + 0x28], dx
mov edx, dword [esp + 0x40]
mov word [esi + 0x1a], cx
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax], edi
lea eax, [ecx + edx + 0x1c]
mov edx, 0x2b
mov word [esi + 0x12], ax
mov eax, edx
mov word [esi + 0x16], dx
call fcn.00424490
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
or ecx, dword [esp + 0x8c]
or eax, dword [esp + 0x88]
mov dword [esi + 4], ecx
push esi
mov ecx, ebx
mov dword [esi], eax
call fcn.0047fbd0
add esp, 4
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x38]
add edi, 0x30
cmp dword [esp + 0x18], 0
je 0x480620
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
cmp dword [esp + 0x18], 0
jne 0x480965
jmp 0x4806f4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
test ebp, ebp
je 0x480965
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x480727
mov edx, dword [edi + 0x30]
mov ebx, dword [esp + 0x24]
push eax
push edx
call fcn.00480460
mov ebx, dword [esp + 0x8c]
add esp, 8
test eax, eax
je 0x48094e
mov eax, dword [ebp + 8]
movzx edi, word [eax]
xor ecx, ecx
xor edx, edx
xor eax, eax
mov word [esi + 0x18], cx
mov word [esi + 0x1a], dx
mov edx, dword [esp + 0x88]
mov word [esi + 0x28], ax
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x8c]
mov word [esi + 0x12], cx
mov ecx, dword [esp + 0x20]
mov dword [esi], edx
mov dword [esi + 4], eax
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebp
mov edx, dword [ecx + 0x30]
push edx
push ebp
mov ecx, ebx
call fcn.00480370
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [esp + 0x40], eax
jg 0x4807c1
mov ecx, dword [esp + 0x24]
neg eax
sbb al, al
and al, byte [esp + 0x28]
push edi
mov byte [esi + 0x11], al
lea eax, [edi + 0x10]
push esi
push ecx
mov dword [esi + 0x24], 0x100
mov word [esi + 0x14], ax
call fcn.0047fd30
add esp, 0xc
push esi
mov ecx, ebx
call fcn.0047fbd0
add esp, 4
mov word [esi + 0x16], di
test eax, eax
jne 0x480969
jmp 0x480931
test byte [ebp + 0x38], 0x20
je 0x4807d4
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor ebp, ebp
jmp 0x480804
mov eax, ebp
call fcn.00480420
mov ecx, eax
mov eax, dword [esp + 0x20]
mov ebp, edx
not ecx
and ecx, dword [eax + 0x40]
not ebp
and ebp, dword [eax + 0x44]
mov edx, ecx
or edx, ebp
mov eax, 0x240
je 0x4807fd
mov eax, 0x200
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x480864
mov edx, dword [esp + 0x1c]
test byte [edx + 0x2c], 0x20
jne 0x480864
mov edx, ecx
or edx, ebp
jne 0x480926
mov edx, dword [esp + 0x14]
test byte [edx + 0x38], 4
jne 0x480926
mov dx, word [edx + 0x30]
mov ebx, dword [esp + 0x1c]
cmp dx, word [ebx + 0x2a]
jge 0x480926
mov edx, dword [esp + 0x2c]
test byte [edx + 0x22], 4
jne 0x480926
cmp dword [0x4e7278], eax
je 0x480926
mov edx, dword [edx]
mov edx, dword [edx]
test byte [edx + 0x3c], 0x40
jne 0x480926
neg eax
sbb al, al
and al, byte [esp + 0x28]
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x14]
movsx edx, word [eax + 0x30]
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esp + 0x1c]
movsx ebx, word [edx + 0x2a]
cdq
idiv ebx
or ecx, ebp
lea eax, [eax + edi + 1]
mov word [esi + 0x14], ax
je 0x4808ff
lea ecx, [edi + 0x10]
movzx ecx, cx
movzx eax, ax
cmp ax, cx
jl 0x4808cc
movsx edx, cx
movsx ecx, ax
lea ebx, [edx + 0x31]
cmp ecx, ebx
jg 0x4808f8
lea ebx, [edx + 0x1f]
cmp ecx, ebx
jle 0x4808ba
inc eax
jmp 0x4808f8
sub ecx, edx
movzx dx, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add dx, ax
movzx eax, dx
jmp 0x4808fb
movsx edx, ax
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x4808de
movzx eax, cx
jmp 0x4808fb
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x4808eb
inc ecx
movzx eax, cx
jmp 0x4808fb
sub eax, edx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x24]
push edi
push esi
push ecx
call fcn.0047fd30
mov ecx, dword [esp + 0x90]
add esp, 0xc
push esi
call fcn.0047fbd0
add esp, 4
mov word [esi + 0x16], di
test eax, eax
jne 0x480969
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push 0
push ebp
push edi
push ebx
call fcn.0047fe40
add esp, 0x10
cmp dword [edi + 0x4c], 0
mov dword [esp + 0x18], eax
jne 0x480969
jmp 0x480952
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
inc dword [esp + 0x28]
mov dword [esp + 0x14], edx
test eax, eax
je 0x4806f0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret