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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x1c]
neg esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], ecx
sbb esi, esi
mov ecx, dword [ebx + 0xc]
and esi, dword [ebp + 0xc]
mov dword [ebx + 0x1c], 1
call fcn.0041a2f5
and dword [ebp - 0x24], edi
and dword [ebx + 0xbc], edi
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0xc0], eax
je 0x4151d2
push eax
push esi
mov ecx, ebx
call fcn.00415049
test eax, eax
js 0x415872
mov eax, dword [ebx + 0xc0]
mov ecx, ebx
shr eax, 0xa
push eax
call fcn.00415cfd
test esi, esi
jne 0x4151f5
mov dword [ebx + 0xc4], esi
mov dword [ebx + 0xc8], esi
jmp 0x4151f7
xor esi, esi
push 0x10
lea eax, [ebx + 0xac]
push esi
push eax
call sub.msvcrt.dll_memset
push 0x1c
lea eax, [ebx + 0xd4]
mov dword [ebx + 0xa8], esi
push esi
push eax
mov dword [ebx + 0xa4], esi
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x415352
mov ecx, dword [ebx + 0xc]
push 8
mov al, byte [ecx + 0xb]
mov byte [ebp + esi - 0x14], al
call fcn.0040d643
mov eax, dword [ebx + 4]
cmp dword [eax + 0x3c], edi
jl 0x41524c
inc esi
cmp esi, 2
jb 0x41522d
mov eax, dword [ebx + 4]
movzx ecx, word [ebp - 0x14]
mov dword [eax + 0x1360], ecx
mov eax, dword [ebx + 4]
test byte [eax + 0x1360], 2
je 0x41526f
mov dword [eax + 0x988], 1
mov eax, dword [ebx + 4]
xor esi, esi
test byte [eax + 0x1360], 4
je 0x4152e7
mov dword [eax + 0x98c], 1
mov ecx, dword [ebx + 0xc]
push 8
mov al, byte [ecx + 0xb]
mov byte [ebp + esi - 0x2c], al
call fcn.0040d643
mov eax, dword [ebx + 4]
cmp dword [eax + 0x3c], edi
jl 0x4152a6
inc esi
cmp esi, 6
jb 0x415287
mov eax, dword [ebp - 0x2a]
lea ecx, [ebx + 0xd4]
mov dword [ebx + 0xe8], eax
xor esi, esi
xor eax, eax
mov dword [ebx + 0xec], esi
inc eax
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xe0], eax
movzx eax, byte [ebp - 0x2b]
mov dword [ecx], eax
movzx eax, byte [ebp - 0x2c]
push ecx
mov ecx, dword [ebx + 0x10]
push eax
push esi
mov dword [ebx + 0xd8], eax
call fcn.00411e02
mov eax, dword [ebx + 4]
test byte [eax + 0x1360], 8
je 0x415352
mov dword [eax + 0x990], 1
mov ecx, dword [ebx + 0xc]
push 8
mov al, byte [ecx + 0xb]
mov byte [ebp + esi - 0x40], al
call fcn.0040d643
mov eax, dword [ebx + 4]
cmp dword [eax + 0x3c], edi
jl 0x41531c
inc esi
cmp esi, 0x11
jb 0x4152fd
mov eax, dword [ebp - 0x40]
xor esi, esi
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0xe8], eax
xor eax, eax
inc eax
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xe0], eax
movzx eax, byte [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00414d4e
mov eax, dword [ebx + 4]
and dword [ebp + 0x10], edi
push 0
push 0x64
mov ecx, dword [eax + 0x1340]
mov eax, dword [eax + 0x1344]
push eax
push ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
call fcn.00401040
mov ecx, 0x8000
mov dword [ebp - 0x18], eax
cmp eax, ecx
jae 0x41538d
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 4], edi
jl 0x415839
jg 0x4153a1
cmp dword [ebp + 8], edi
jbe 0x415839
mov esi, dword [ebx + 4]
cmp dword [esi + 0x3c], 0
jl 0x415836
mov ecx, dword [ebp + 0xc]
mov edx, ecx
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 0x1c]
js 0x4153f6
jg 0x4153c5
cmp edx, dword [ebp - 0x18]
jb 0x4153f6
sub ecx, dword [ebp - 0xc]
mov eax, ecx
cdq
add dword [esi + 0x1330], eax
adc dword [esi + 0x1334], edx
mov eax, dword [ebx + 4]
mov dword [eax + 0x1328], ecx
mov ecx, dword [ebx + 4]
call fcn.004047f8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], eax
jmp 0x4153f9
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0xbc], 0
jne 0x415496
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
mov eax, dword [ebx + 0xcc]
add eax, dword [ebx + 0xc4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415a38
test eax, eax
je 0x41581e
cmp dword [ebp - 0x14], 1
jne 0x41548c
mov eax, dword [ebx + 0xbc]
add dword [ebx + 0xc4], eax
sub dword [ebp + 8], eax
push 0
pop ecx
sbb dword [ebp - 4], ecx
add esi, eax
mov eax, dword [ebx + 0xc4]
adc dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], esi
mov dword [ebx + 0xbc], ecx
cmp eax, dword [ebx + 0xc0]
jb 0x415474
mov ecx, ebx
call fcn.00415d77
mov eax, dword [ebx + 0xc0]
mov ecx, dword [ebp - 4]
dec eax
and dword [ebx + 0xc4], eax
mov eax, dword [ebp + 8]
jmp 0x41580b
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x41549c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x20], 0
mov esi, dword [ebx + 0xc]
push 0x20
mov edx, dword [esi + 8]
jne 0x4154bb
mov eax, dword [ebx + 0x50]
pop ecx
sub ecx, dword [ebx + 0x48]
shr edx, cl
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx + 0x4c]
jmp 0x4154e2
inc eax
cmp ecx, eax
pop ecx
jae 0x4154d1
sub ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x50]
shr edx, cl
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx + 0x4c]
jmp 0x4154df
sub ecx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x64]
shr edx, cl
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx + 0x60]
mov dword [ebp - 8], ecx
push dword [eax + ecx*4]
mov dword [ebp - 0x14], ecx
mov ecx, esi
call fcn.0040d643
dec dword [ebx + 0xbc]
mov eax, pe_nt_image_headers32
mov edx, dword [ebp - 0x14]
cmp edx, eax
jae 0x415556
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xc4]
mov byte [ecx + eax], dl
inc dword [ebx + 0xc4]
mov eax, dword [ebx + 0xc4]
cmp eax, dword [ebx + 0xc0]
jb 0x41552b
mov ecx, ebx
call fcn.00415d77
mov eax, dword [ebx + 0xc0]
mov ecx, dword [ebp - 4]
dec eax
and dword [ebx + 0xc4], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add eax, 0xffffffff
adc ecx, 0xffffffff
add esi, 1
mov dword [ebp + 0xc], esi
adc dword [ebp + 0x10], 0
jmp 0x415805
jne 0x415569
mov esi, dword [ebx + 0xa4]
mov edi, dword [ebx + 0xa8]
jmp 0x4157e7
mov esi, 0x101
cmp edx, esi
jne 0x415596
mov esi, dword [ebx + 0xc4]
mov ecx, esi
mov eax, dword [ebx + 0xc0]
sub ecx, edi
mov edx, dword [ebx + 0xcc]
dec eax
and ecx, eax
mov al, byte [ecx + edx]
mov byte [esi + edx], al
jmp 0x415510
mov eax, 0x106
cmp edx, eax
jae 0x415651
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + edx*4 - 0x35c]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [esi + 8]
push 0x20
pop ecx
sub ecx, dword [ebx + 0x70]
shr edx, cl
mov ecx, esi
mov edi, dword [eax + edx*4]
mov eax, dword [ebx + 0x74]
push dword [eax + edi*4]
call fcn.0040d643
cmp edi, 0x18
jne 0x4155f6
mov ecx, dword [ebx + 0xc]
push 0xe
mov eax, dword [ecx + 8]
shr eax, 0x12
add eax, 0x101
mov dword [ebx + 0xa4], eax
call fcn.0040d643
jmp 0x415558
mov eax, dword [edi*4 + 0x425010]
mov dword [ebx + 0xa4], eax
mov esi, dword [edi*4 + 0x425078]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x41562f
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
sub ecx, esi
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
add eax, dword [ebp - 0x2c]
push esi
mov dword [ebx + 0xa4], eax
call fcn.0040d643
add dword [ebx + 0xa4], 2
cmp dword [ebx + 0xa8], 0x7fff
jbe 0x415558
inc dword [ebx + 0xa4]
jmp 0x415558
mov ecx, 0x10e
cmp edx, ecx
jae 0x415696
sub edx, eax
push 2
pop esi
mov eax, dword [edx*4 + 0x424ef8]
mov edi, dword [edx*4 + 0x424ed8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41568d
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
push dword [ebp - 0x2c]
sub ecx, eax
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
add edi, eax
call fcn.0040d643
inc edi
push edi
push 2
jmp 0x4157e9
mov eax, 0x11e
cmp edx, eax
jae 0x4156db
sub edx, ecx
push 3
pop esi
mov eax, dword [edx*4 + 0x424fd0]
mov edi, dword [edx*4 + 0x424f90]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4156d2
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
push dword [ebp - 0x2c]
sub ecx, eax
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
add edi, eax
call fcn.0040d643
inc edi
push edi
push 3
jmp 0x4157e9
cmp edx, 0x136
jne 0x4156fa
mov ecx, dword [ebx + 0xc]
push 0xe
mov eax, dword [ecx + 8]
shr eax, 0x12
add eax, esi
mov dword [ebp - 0x2c], eax
call fcn.0040d643
jmp 0x41572b
sub edx, eax
mov edi, dword [edx*4 + 0x425078]
mov esi, dword [edx*4 + 0x425010]
test edi, edi
je 0x415725
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
sub ecx, edi
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
push edi
add esi, eax
call fcn.0040d643
add esi, 4
mov dword [ebp - 0x2c], esi
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x8c]
push 0x20
pop ecx
sub ecx, dword [ebx + 0x84]
mov edx, dword [edi + 8]
shr edx, cl
mov ecx, edi
mov esi, dword [eax + edx*4]
mov eax, dword [ebx + 0x88]
push dword [eax + esi*4]
call fcn.0040d643
cmp dword [ebp - 0x24], 0
mov eax, dword [ebx + 0x20]
mov edi, dword [eax + esi*4]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x14], edi
mov esi, dword [eax + esi*4]
jne 0x415770
test esi, esi
je 0x4157e3
jmp 0x415779
test esi, esi
je 0x4157e3
cmp esi, 4
jae 0x415792
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
sub ecx, esi
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
push esi
add edi, eax
call fcn.0040d643
jmp 0x4157e3
sub esi, 4
je 0x4157b4
mov edx, dword [ebx + 0xc]
push 0x20
pop ecx
sub ecx, esi
mov eax, dword [edx + 8]
shr eax, cl
mov ecx, edx
shl eax, 4
add edi, eax
push esi
mov dword [ebp - 0x14], edi
call fcn.0040d643
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 0xa0]
push 0x20
pop ecx
sub ecx, dword [ebx + 0x98]
mov edx, dword [edi + 8]
shr edx, cl
mov ecx, edi
mov esi, dword [eax + edx*4]
mov eax, dword [ebx + 0x9c]
push dword [eax + esi*4]
call fcn.0040d643
mov edi, dword [ebp - 0x14]
add edi, esi
mov esi, dword [ebp - 0x2c]
inc edi
push edi
push esi
mov ecx, ebx
call fcn.004150e7
add dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
adc dword [ebp + 0x10], 0
sub eax, esi
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
sbb ecx, 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
test ecx, ecx
jl 0x415839
jg 0x4153a1
test eax, eax
je 0x415839
jmp 0x4153a1
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x3c], 0
jge 0x415839
push dword [ecx + 0x20]
push 0x80040294
call fcn.00402c34
jmp 0x415839
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
cmp dword [eax + 0x3c], 0x80040294
je 0x41584c
mov ecx, ebx
call fcn.00415d77
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
mov eax, esi
cdq
add dword [ecx + 0x1330], eax
adc dword [ecx + 0x1334], edx
mov eax, dword [ebx + 4]
mov dword [eax + 0x1328], esi
mov ecx, dword [ebx + 4]
call fcn.004047f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc