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

Disassembly:
sub esp, 0x298
mov ecx, dword [esp + 0x29c]
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
test byte [edi + 0x22], 0x80
mov dword [esp + 0x14], 0
mov dword [esp + 0x50], eax
je 0x480e25
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov ebp, dword [ecx + 0xc]
lea ebx, [eax + eax*2]
push 0x38
shl ebx, 4
lea eax, [esp + 0x6c]
push 0
add ebx, esi
push eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x28], ebp
call fcn.004aaf30
movzx eax, byte [ebp + 0x10]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*4]
shl ecx, 4
lea eax, [ecx + edx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0x30]
add esp, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], esi
cmp esi, ebx
jae 0x481264
mov bx, word [esp + 0x68]
lea esp, [esp]
cmp dword [esp + 0x14], 0
jne 0x481264
mov ecx, 0x100
test word [esi + 0x12], cx
je 0x48124f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x198]
mov edx, dword [eax + 0x19c]
and ecx, dword [ebp + 8]
and edx, dword [ebp + 0xc]
or ecx, edx
je 0x48124f
mov ecx, dword [eax + 0xc]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x2ac]
mov esi, dword [ecx]
shl edx, 4
add edx, dword [eax + 0x14]
mov dword [esp + 0x38], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x3c], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x40], esi
mov esi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], ecx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x64], edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], edi
cmp edi, edx
jae 0x4811d1
mov edx, 0x200
test word [edi + 0x12], dx
je 0x480f2a
mov eax, dword [edi + 0xc]
jmp 0x480f6c
mov ecx, dword [esp + 0x4c]
cmp dword [edi + 8], ecx
jne 0x4811b7
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
mov byte [esp + 0x118], 0x48
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], edi
lea eax, [esp + 0x110]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov word [esp + 0xa0], cx
mov ecx, dword [esp + 0x2b4]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x2b0]
test byte [eax + 0x2c], 0x10
push ecx
push edx
lea eax, [esp + 0x40]
push eax
je 0x480fa3
call fcn.00480980
jmp 0x480fa8
call fcn.004804a0
mov si, word [esp + 0xac]
add esp, 0xc
mov dword [esp + 0x14], eax
test si, si
je 0x4811ca
cmp dword [esp + 0x24], 0
je 0x480ff5
movzx ecx, si
shl ecx, 4
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x78]
push eax
mov word [esp + 0x74], si
call fcn.004adef0
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x4811b2
movzx ecx, bx
shl ecx, 4
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0xe8]
push eax
mov word [esp + 0xe4], bx
call fcn.004adef0
movzx ecx, word [esp + 0xe4]
xor ebx, ebx
add esp, 0xc
mov word [esp + 0x68], bx
test ecx, ecx
jle 0x4811b7
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ecx
jmp 0x481050
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x4811a0
movzx ebp, word [edx]
mov ecx, dword [edx - 8]
movzx ebx, word [edx + 2]
mov edx, dword [edx - 4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea edi, [esp + 0xb0]
movzx ecx, word [edi + 2]
cmp bx, cx
jl 0x4810bc
movsx ecx, cx
movsx eax, bx
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x48109b
movzx esi, bx
jmp 0x4810eb
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x4810aa
lea eax, [ebx + 1]
movzx esi, ax
jmp 0x4810eb
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bx
movzx esi, cx
jmp 0x4810eb
movsx edx, bx
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x4810ce
movzx esi, cx
jmp 0x4810eb
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x4810db
inc ecx
movzx esi, cx
jmp 0x4810eb
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx esi, dx
movzx ecx, word [edi]
cmp bp, cx
jl 0x481126
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x481105
movzx eax, bp
jmp 0x481159
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x481114
lea eax, [ebp + 1]
movzx eax, ax
jmp 0x481159
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bp
movzx eax, cx
jmp 0x481159
movsx edx, bp
movsx eax, cx
lea ebp, [edx + 0x31]
cmp eax, ebp
jle 0x481138
movzx eax, cx
jmp 0x481155
lea ebp, [edx + 0x1f]
cmp eax, ebp
jle 0x481145
inc ecx
movzx eax, cx
jmp 0x481155
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx eax, dx
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi - 4]
or ecx, dword [esp + 0x5c]
push esi
push eax
mov eax, dword [edi - 8]
or eax, dword [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.0047ac80
mov ecx, dword [esp + 0x40]
movzx eax, word [esp + 0xb4]
inc ecx
add esp, 0x14
add edi, 0x10
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jl 0x481080
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
add edx, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0x34], edx
jne 0x481050
mov bx, word [esp + 0x68]
add edi, 0x30
mov dword [esp + 0x30], edi
cmp edi, dword [esp + 0x64]
jb 0x480f1a
jmp 0x4811d1
xor ebx, ebx
mov word [esp + 0x68], bx
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, 1
mov word [ebp + 0x28], ax
xor eax, eax
mov dword [ecx], edx
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], ax
mov byte [ebp + 0x11], al
mov dword [ebp + 0x18], eax
xor edi, edi
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
cmp dword [esp + 0x14], eax
jne 0x48124f
movzx ebp, bx
lea esi, [esp + 0x7a]
cmp edi, ebp
jge 0x48124b
mov eax, dword [esp + 0x1c]
mov cx, word [esi - 2]
mov dx, word [esi]
inc cx
mov word [eax + 0x14], cx
mov ecx, dword [esi - 0xa]
mov word [eax + 0x16], dx
mov edx, dword [esi - 6]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2ac]
push eax
mov dword [eax + 4], edx
call fcn.0047fbd0
add esp, 4
inc edi
add esi, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x48120b
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esi, 0x30
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x60]
jb 0x480e80
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret