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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, dword [esp + 0xd4]
mov ebp, ecx
cmp dword [esi + 4], 0
jne 0x48029b
mov edi, dword [esi]
mov eax, dword [esi + 8]
cmp dword [eax + 4], edi
jbe 0x48029b
mov eax, dword [eax]
mov dword [esp + 4], edx
lea ecx, [esp + 0x48]
mov edx, esi
movzx ebx, byte [eax + edi]
push 7
call fcn.0047c8b0
add esp, 4
cmp byte [esp + 0x48], 0
je 0x4802a3
movzx ebx, byte [esp + 0x49]
jmp 0x4802f0
mov word [ebp], 1
jmp 0x4802f7
mov eax, esi
mov byte [esp + 0x18], bl
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esi]
mov esi, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, edx
sub ecx, ebp
cmovb ecx, eax
test esi, esi
cmovne ecx, eax
cmp ebx, ecx
jbe 0x480302
mov eax, dword [0x94bccc]
mov bl, 2
test eax, eax
je 0x480342
mov ebp, dword [esp + 0x14]
mov byte [ebp + 1], bl
mov byte [ebp], 1
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, ebp
mov esi, ebp
sub ebx, edi
cmp byte [esp + 0x18], 0
js 0x480510
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd4]
add esi, edx
adc eax, 0
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], 0
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
mov byte [ecx], 0
jmp 0x4802f7
movzx eax, byte [0x94a1b8]
test al, al
je 0x4802ec
mov esi, ebp
mov ebp, dword [esp + 0x14]
movzx eax, al
cmp eax, 1
je 0x480376
cmp eax, 2
je 0x4803ba
mov ecx, 0x94a1b0
call fcn.007d3740
test al, al
je 0x4802f0
movzx eax, al
cmp eax, 2
je 0x4803ba
mov eax, dword [0x94a1b0]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x4802f0
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x4803aa
mov edi, dword [ecx + 8]
dec edi
and edi, 0xfffffff8
lea edx, [edi + edx + 8]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x4802f0
mov ecx, dword [0x94a1b0]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x48081e
mov ebp, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x24]
mov edi, dword [ecx + 0x28]
cmp eax, 1
mov dword [esp + 0xa8], 0x81d190
mov dword [esp + 0xac], 1
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], 0x93d1f8
mov dword [esp + 0xb4], 0
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0
je 0x48081e
cmp eax, 2
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 1
jbe 0x48081e
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 2
xor edx, edx
mov eax, dword [eax + 4]
sub eax, esi
lea esi, [esp + 0x88]
cmovb eax, edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x48], esi
lea esi, [esp + 0x34]
cmovne eax, edx
lea edx, [esp + 0xa8]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x84]
mov dword [esp + 0x50], 0x81c698
mov dword [esp + 0x54], esi
lea esi, [esp + 0x6c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x5c], 0x81c654
mov dword [esp + 0x60], esi
lea esi, [esp + 0x48]
mov dword [esp + 0x64], edx
lea edx, [ecx + 0x1c]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], 3
mov dword [esp + 0x68], 0x81c654
mov dword [esp + 0xa4], edx
lea edx, [esp + 0x9c]
call fcn.007587f0
jmp 0x4802ec
cmp esi, edx
mov edi, edx
mov ebp, dword [esp + 0x2c]
cmovb edi, esi
cmp dword [esp + 0x1c], 0
cmovne edi, edx
sub edx, edi
cmp ebp, edx
ja 0x480832
mov ecx, dword [esp + 4]
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x24]
mov ebx, dword [ecx + 0x28]
add edi, dword [eax]
lea edx, [ecx + 0x20]
mov dword [esp + 0xc], edx
lea edx, [ebp + ebp]
sub ebx, dword [ecx + 0x24]
cmp edx, ebx
jbe 0x48055c
mov ecx, dword [esp + 0xc]
call fcn.0042f3d0
test ebp, ebp
je 0x4806d6
mov dword [esp + 0x20], esi
mov esi, ebp
mov ebp, dword [esp + 4]
xor ebx, ebx
jmp 0x480595
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 3]
mov ecx, dword [ecx]
mov byte [ecx + eax], dl
movzx ecx, byte [esp + 0x13]
inc eax
mov dword [ebp + 0x24], eax
mov esi, dword [esp + 0x18]
inc edi
dec esi
je 0x4806c9
cmp ebx, 0x100
jae 0x4807fc
mov ch, byte [edi]
shl ebx, 7
mov dl, 1
mov byte [esp + 0xb], 6
mov dword [esp + 0x28], edx
movzx eax, ch
shr eax, 4
mov cl, byte [ebx + eax*8 + 0x81e3f1]
test cl, 4
jne 0x4806c0
mov dword [esp + 0x18], esi
mov esi, dword [ebx + eax*8 + 0x81e3ec]
test cl, 2
je 0x48062f
movzx ebx, byte [ebx + eax*8 + 0x81e3f0]
mov eax, dword [ebp + 0x24]
mov byte [esp + 3], ch
cmp dword [ebp + 0x28], eax
jne 0x48061e
mov ecx, dword [esp + 0xc]
mov edx, 1
call fcn.0042f3d0
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
mov ebp, dword [esp + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 4]
mov edx, dword [edx + 0x28]
mov eax, dword [eax + 0x24]
cmp edx, eax
mov byte [ecx + eax], bl
jne 0x480627
jmp 0x4806b4
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
mov byte [ecx + eax], bl
mov ch, byte [esp + 3]
inc eax
mov dword [ebp + 0x24], eax
cmp esi, 0x100
jae 0x48080d
and ch, 0xf
shl esi, 7
movzx eax, ch
movzx ecx, byte [esi + eax*8 + 0x81e3f1]
test cl, 4
jne 0x4806c0
mov ebx, dword [esi + eax*8 + 0x81e3ec]
test cl, 2
je 0x480589
movzx eax, byte [esi + eax*8 + 0x81e3f0]
mov byte [esp + 0x13], cl
mov byte [esp + 3], al
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x28], eax
jne 0x480572
mov ecx, dword [esp + 0xc]
mov edx, 1
call fcn.0042f3d0
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx ecx, byte [esp + 3]
mov ebp, dword [esp + 4]
mov esi, dword [eax + 0x20]
mov eax, dword [esp + 4]
mov edx, dword [edx + 0x28]
mov eax, dword [eax + 0x24]
cmp edx, eax
mov byte [esi + eax], cl
jne 0x480580
mov ecx, 1
xor edx, edx
call fcn.007c1920
mov esi, dword [esp + 0x20]
jmp 0x480789
mov esi, dword [esp + 0x20]
test cl, 1
jne 0x4806d6
test ebx, ebx
jne 0x4806c4
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push dword [eax + 0x24]
call fcn.0042f200
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x480714
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
test bl, 1
jne 0x480725
mov dword [esp + 0xc], 0x9390b4
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
jmp 0x480781
mov al, 1
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x38]
mov byte [esp + 0xb], al
jmp 0x480789
mov edx, dword [esp + 0x3c]
shr ebx, 5
sub eax, ebx
add ecx, ebx
add edx, ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x88]
call fcn.0042efb0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], ebx
mov ecx, eax
sub ecx, ebx
jb 0x480843
add ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x24]
xor edi, edi
mov ebp, esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx + 4]
sub edx, esi
mov esi, dword [esp + 0x1c]
cmovb edx, edi
test esi, esi
cmovne edx, edi
cmp edx, ecx
jb 0x48083e
mov edx, dword [esp + 0xd4]
add ebp, ecx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
adc esi, 0
mov dword [edx], ebp
mov ebp, dword [esp + 0x14]
mov dword [edx + 4], esi
mov esi, dword [esp + 4]
mov byte [ebp], al
movzx eax, byte [esp + 0xb]
mov byte [ebp + 1], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], esi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x80]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], ecx
jmp 0x4802f7
mov ecx, ebx
mov edx, pe_nt_image_headers32
push 0x8263ec
call fcn.007c1be0
mov ecx, esi
mov edx, pe_nt_image_headers32
push 0x8263ec
call fcn.007c1be0
mov ecx, 0x8a6758
mov edx, 0x22
push 0x81d168
call fcn.007c2000
mov ecx, ebp
push 0x81d158
call fcn.007c1c40
call fcn.007c1920
lea ecx, [esp + 0x30]
lea edx, [esp + 0x9c]
mov dword [esp + 0x48], 0x9390ec
mov dword [esp + 0x4c], 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xac], fcn.00412930
mov dword [esp + 0xb0], edx
mov edx, 0x8aefbc
mov dword [esp + 0xb4], fcn.00412930
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], 2
call fcn.007c1b50
int3