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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x9c
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x38], 0
mov dword [ebp + 0xc], eax
mov edi, dword [edx + 0x78]
test edi, edi
jle 0x4e8f65
mov eax, dword [edx + 0x7c]
cmp dword [eax + 4], 0xffffffff
je 0x4e9547
mov eax, dword [ebp + 0xc]
cmp eax, 0x62776173
je 0x4e9091
cmp eax, 0x726d6173
je 0x4e92bc
cmp dword [esi + 0x40], 0x19
jle 0x4e92ee
mov ecx, dword [esi + 0x44]
movzx ebx, word [ecx + 8]
ror bx, 8
movzx eax, bx
cmp eax, 1
mov dword [esp + 0x3c], eax
jg 0x4e9582
movzx edx, word [ecx + 0x12]
ror dx, 8
shr dx, 3
movzx eax, dx
movzx edi, word [ecx + 0x10]
ror di, 8
mov dword [ebp + 0x20], eax
mov dword [esi + 0x34], eax
movzx eax, di
cmp eax, 2
je 0x4e95aa
jle 0x4e9317
cmp eax, 3
je 0x4e9702
movzx ebx, word [ecx + 0x10]
ror bx, 8
movzx ecx, bx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xc31e34
mov dword [esp + 4], 2
mov dword [esp], 7
call fcn.0040f28e
mov dword [esi + 0x30], 2
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x30]
movzx edi, word [ecx + 0x18]
ror di, 8
mov dword [ebp + 0x24], eax
movzx eax, di
cmp eax, 0x1b57
mov dword [ebp + 0x1c], eax
jg 0x4e90b4
mov ebx, dword [esi + 0x6c]
test ebx, ebx
je 0x4e90b4
mov edx, dword [ebx + 4]
cmp edx, 1
jbe 0x4e90b4
mov edi, edx
xor edx, edx
div edi
cmp eax, 0x2b
je 0x4e9088
ja 0x4e976c
cmp eax, 0x1f
je 0x4e9781
movzx edx, word [ecx + 0x18]
ror dx, 8
movzx eax, dx
xor edx, edx
div dword [ebx + 4]
mov dword [esp + 8], 0xc31e74
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
mov dword [esp], 7
call fcn.0040f28e
mov dword [ebp + 0x1c], 0xac44
jmp 0x4e90b4
mov dword [ebp + 0x20], 1
mov dword [esi + 0x34], 1
mov dword [ebp + 0x24], 1
mov dword [esi + 0x30], 1
mov dword [ebp + 0x1c], 0x3e80
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x14], edi
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 8], 0xc31ebc
mov dword [esp + 4], 6
shl ecx, 3
mov dword [esp], 7
mov dword [esp + 0xc], ecx
call fcn.0040f28e
cmp dword [esi + 0x40], 0x2b
jle 0x4e90fb
mov eax, dword [esi + 0x44]
cmp byte [eax + 9], 0
jne 0x4e9448
cmp dword [esp + 0x3c], 1
mov edi, 0x30
je 0x4e913d
jle 0x4e9533
cmp dword [esp + 0x3c], 2
je 0x4e9138
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], 0xc31ee4
mov dword [esp + 4], 2
mov dword [esp + 0xc], ebx
mov dword [esp], 7
call fcn.0040f28e
mov edi, 0x44
lea ecx, [edi + 0x24]
mov edx, dword [esi + 0x40]
cmp edx, ecx
jl 0x4e91d1
mov ecx, dword [esi + 0x44]
mov ebx, dword [ecx + edi + 0x1c]
bswap ebx
test ebx, ebx
js 0x4e92e4
mov eax, edx
sub eax, edi
sub eax, 0x1c
cmp eax, ebx
jl 0x4e92e4
mov eax, dword [ecx + edi + 0x20]
bswap eax
cmp eax, 0x64616d72
je 0x4e95b6
ja 0x4e934f
cmp eax, 0x616c6163
je 0x4e970e
mov dword [esp + 0x1c], ebx
movzx ebx, byte [ecx + edi + 0x23]
mov dword [esp + 0x18], ebx
movzx edx, byte [ecx + edi + 0x22]
mov dword [esp + 0x14], edx
movzx eax, byte [ecx + edi + 0x21]
mov dword [esp + 0x10], eax
movzx ebx, byte [ecx + edi + 0x20]
mov dword [esp + 8], 0xc31f1c
mov dword [esp + 4], 6
mov dword [esp + 0xc], ebx
mov dword [esp], 7
call fcn.0040f28e
lea ecx, [esi + 0x2c]
mov dword [esp + 8], 0xc31f4a
mov dword [esp + 4], 6
mov dword [esp + 0xc], ecx
mov dword [esp], 7
call fcn.0040f28e
mov edi, dword [esp + 0x38]
mov eax, 0x12
test edi, edi
je 0x4e920a
mov eax, dword [ebp + 0xa8]
add eax, 0x12
mov dword [esp], eax
call fcn.00a5b598
xor edx, edx
mov dword [ebp + 0x9c], eax
mov ebx, eax
cld
mov edi, eax
mov ecx, 4
mov eax, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, ebx
mov ebx, dword [ebp + 0x24]
mov ecx, dword [esi + 0x44]
mov word [edi + 2], bx
movzx edx, byte [ecx + 0x12]
movzx ax, byte [ecx + 0x13]
shl edx, 8
add eax, edx
mov word [edi + 0xe], ax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 4], eax
cmp dword [esi + 0x40], 0x2b
jle 0x4e9267
cmp byte [ecx + 9], 0
je 0x4e9267
mov edx, dword [ecx + 0x1c]
bswap edx
test edx, edx
jne 0x4e932c
movzx eax, word [edi + 2]
movzx edx, word [edi + 0xe]
imul eax, edx
imul eax, dword [edi + 4]
shr eax, 3
mov dword [edi + 8], eax
cmp dword [ebp + 0xc], 0x1100736d
je 0x4e92ab
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4e929b
mov ecx, dword [ebp + 0xa8]
test ecx, ecx
jne 0x4e941a
add esp, 0x9c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 0x40], 0x23
jle 0x4e9285
mov ebx, dword [ecx + 0x24]
bswap ebx
mov word [edi + 0xc], bx
jmp 0x4e9285
mov dword [ebp + 0x20], 1
mov dword [esi + 0x34], 1
mov dword [ebp + 0x24], 1
mov dword [esi + 0x30], 1
mov dword [ebp + 0x1c], 0x1f40
jmp 0x4e90b4
sub edx, edi
lea ebx, [edx - 0x1c]
jmp 0x4e916b
mov dword [esp + 8], 0xc31f58
mov dword [esp + 4], 2
mov dword [esp], 7
call fcn.0040f28e
add esp, 0x9c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, 1
jne 0x4e8fdb
mov dword [esi + 0x30], 1
jmp 0x4e9010
movzx ebx, bx
mov esi, dword [ecx + 0x20]
bswap esi
imul ebx, eax
mov eax, edx
imul ebx, esi
shr eax, 1
mov esi, edx
lea eax, [ebx + eax]
xor edx, edx
div esi
mov dword [edi + 8], eax
jmp 0x4e92b1
cmp eax, 0x65736473
jne 0x4e918d
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc31f80
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
cmp ebx, 8
jle 0x4e91d1
lea eax, [esp + 0x60]
lea ecx, [ebx - 8]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
add edi, dword [esi + 0x44]
lea edx, [edi + 0x24]
mov dword [esp], edx
call fcn.00515e3b
test eax, eax
jne 0x4e9409
movzx ecx, byte [esp + 0x6b]
cmp cl, 0xdd
je 0x4e96b6
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
shr edi, 3
cmp cl, 0x6b
sete dl
cmp cl, 0x69
mov dword [ebp + 0x2c], edi
sete al
or eax, edx
test al, 1
je 0x4e93d9
mov dword [ebp + 0xc], 0x55
cmp cl, 0xe1
je 0x4e980c
test bx, bx
je 0x4e9409
mov eax, dword [esp + 0x80]
movzx ecx, byte [eax]
shr cl, 3
cmp cl, 0x1d
je 0x4e984a
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4e9856
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.005169ad
jmp 0x4e91d1
mov eax, dword [ebp + 0xa4]
lea edx, [edi + 0x12]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00a5b5c0
mov edi, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa8]
mov word [edi + 0x10], si
jmp 0x4e929b
mov ebx, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
bswap ecx
mov eax, dword [eax + 0x1c]
bswap edx
bswap eax
bswap ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc31fc0
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
cmp dword [esi + 0x40], 0x33
jle 0x4e90fb
mov eax, dword [esi + 0x44]
mov ebx, dword [eax + 0x2c]
mov edi, dword [eax + 0x30]
bswap ebx
bswap edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0xc3200c
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
cmp ebx, 3
jle 0x4e94e6
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x34]
bswap edx
cmp edx, 0xb
jbe 0x4e94e6
mov edi, dword [ecx + 0x38]
bswap edi
cmp edi, 0x66726d61
je 0x4e978d
cmp ebx, 8
jle 0x4e90fb
lea ecx, [ebx + 0x2c]
cmp ecx, dword [esi + 0x40]
jg 0x4e90fb
lea edi, [ebx - 8]
mov dword [ebp + 0xa8], edi
mov dword [esp], edi
call fcn.00a5b598
mov dword [ebp + 0xa4], eax
mov ecx, dword [esi + 0x44]
add ecx, 0x34
mov edx, dword [ebp + 0xa8]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.00a5b5c0
jmp 0x4e90fb
mov eax, dword [esp + 0x3c]
xor di, di
test eax, eax
je 0x4e913d
jmp 0x4e9114
xor edx, edx
mov ecx, dword [eax]
push edx
push ecx
fild qword [esp]
add esp, 8
fidiv dword [esp + 0xb0]
fst dword [ebp + 0x14]
fstp qword [esp + 0xc]
mov dword [esp + 8], 0xc32034
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
jmp 0x4e8f65
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc32058
mov dword [esp + 4], 2
mov dword [esp], 7
call fcn.0040f28e
mov ecx, dword [esi + 0x44]
jmp 0x4e8fa3
mov dword [esi + 0x30], 2
jmp 0x4e9010
mov dword [esp + 0x1c], ebx
movzx edx, byte [ecx + edi + 0x23]
mov dword [esp + 0x18], edx
movzx eax, byte [ecx + edi + 0x22]
mov dword [esp + 0x14], eax
movzx edx, byte [ecx + edi + 0x21]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + edi + 0x20]
mov dword [esp + 8], 0xc32090
mov dword [esp + 4], 6
mov dword [esp + 0xc], eax
mov dword [esp], 7
call fcn.0040f28e
cmp ebx, 0xe
jle 0x4e91d1
mov ecx, dword [esi + 0x44]
movzx edx, byte [ecx + edi + 0x28]
mov dword [esp + 0x1c], edx
movzx eax, byte [ecx + edi + 0x27]
mov dword [esp + 0x18], eax
movzx ebx, byte [ecx + edi + 0x26]
mov dword [esp + 0x14], ebx
movzx edx, byte [ecx + edi + 0x25]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + edi + 0x24]
mov dword [esp + 8], 0xc320bc
mov dword [esp + 4], 6
mov dword [esp + 0xc], eax
mov dword [esp], 7
call fcn.0040f28e
mov edx, dword [esi + 0x44]
movzx ebx, byte [edx + edi + 0x2a]
mov dword [esp + 0x10], ebx
movzx ecx, byte [edx + edi + 0x29]
mov dword [esp + 8], 0xc320df
mov dword [esp + 4], 6
mov dword [esp + 0xc], ecx
mov dword [esp], 7
call fcn.0040f28e
mov ebx, dword [esi + 0x44]
movzx eax, byte [ebx + edi + 0x2c]
mov dword [esp + 0x10], eax
movzx ecx, byte [ebx + edi + 0x2b]
mov dword [esp + 8], 0xc320fc
mov dword [esp + 4], 6
mov dword [esp + 0xc], ecx
mov dword [esp], 7
call fcn.0040f28e
jmp 0x4e91d1
cmp byte [esp + 0x6c], 0x15
jne 0x4e93b2
cmp dword [ebp + 0xc], 0x6134706d
jne 0x4e93b2
mov ebx, dword [esp + 0x7c]
cmp bx, 8
jbe 0x4e93b6
mov edi, dword [esp + 0x80]
mov dword [esp + 0x2c], edi
cmp byte [edi], 0
jne 0x4e96f6
cmp byte [edi + 1], 0x1e
je 0x4e98eb
mov dword [ebp + 0xc], 0x73627276
jmp 0x4e93b6
mov dword [esi + 0x30], 6
jmp 0x4e9010
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc3212f
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
cmp ebx, 8
jle 0x4e91d1
mov dword [ebp + 0xa8], ebx
mov dword [esp], ebx
call fcn.00a5b598
mov edx, dword [ebp + 0xa8]
mov dword [ebp + 0xa4], eax
mov ebx, dword [esi + 0x44]
mov dword [esp + 8], edx
mov dword [esp], eax
add ebx, 0x1c
mov dword [esp + 4], ebx
call fcn.00a5b5c0
jmp 0x4e91d1
cmp eax, 0x2f
jne 0x4e9058
mov dword [ebp + 0x1c], 0xbb80
jmp 0x4e90b4
mov dword [ebp + 0x1c], 0x7d00
jmp 0x4e90b4
mov eax, dword [ecx + 0x3c]
bswap eax
cmp eax, 0x666c3634
je 0x4e97b5
ja 0x4e9834
cmp eax, 0x616c6163
je 0x4e988f
cmp eax, 0x666c3332
jne 0x4e94e6
cmp ebx, 0x15
jle 0x4e90fb
mov eax, dword [ecx + 0x44]
bswap eax
cmp eax, 0x656e6461
jne 0x4e90fb
movzx edx, word [ecx + 0x48]
ror dx, 8
test dx, dx
je 0x4e90fb
mov ebx, dword [ecx + 0x3c]
bswap ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc3214c
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
jmp 0x4e90fb
mov dword [ebp + 0xc], 0x706c6351
mov dword [ebp + 0x24], 1
mov dword [esi + 0x30], 1
mov dword [ebp + 0x20], 1
mov dword [esi + 0x34], 1
jmp 0x4e93e2
cmp eax, 0x696e3234
je 0x4e97b5
cmp eax, 0x696e3332
jmp 0x4e97af
mov dword [ebp + 0xc], 0x1d61346d
jmp 0x4e93fd
movzx ecx, bx
mov dword [ebp + 0xa8], ecx
mov dword [esp], ecx
call fcn.00a5b598
mov edi, dword [ebp + 0xa8]
mov dword [ebp + 0xa4], eax
mov dword [esp + 8], edi
mov dword [esp], eax
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
call fcn.00a5b5c0
jmp 0x4e9409
lea eax, [edx + 0x24]
cmp ebx, eax
jb 0x4e90fb
mov edi, dword [ecx + edx + 0x34]
bswap edi
mov dword [ebp + 0xa8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xc3212f
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
mov ebx, dword [ebp + 0xa8]
mov dword [esp], ebx
call fcn.00a5b598
mov dword [ebp + 0xa4], eax
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x34]
bswap edx
lea ecx, [ecx + edx + 0x34]
jmp 0x4e9518
mov dword [esp + 0x34], 0
xor ecx, ecx
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
movzx eax, byte [ecx + edx]
movzx dx, byte [edx + ecx + 1]
shl eax, 8
or edx, eax
mov word [esp + edi*2 + 0x40], dx
movzx edx, dx
lea edi, [ecx + 2]
lea eax, [edx + edi]
movzx ecx, bx
add dword [esp + 0x34], edx
cmp eax, ecx
jg 0x4e997d
mov dword [esp], edx
call fcn.00a5b598
mov ecx, eax
mov eax, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + eax*4 + 0x50], ecx
je 0x4e99ad
mov ebx, dword [esp + 0x2c]
movzx eax, word [esp + eax*2 + 0x40]
mov dword [esp], ecx
lea edx, [edi + ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call fcn.00a5b5c0
mov ebx, dword [esp + 0x30]
movzx eax, word [esp + ebx*2 + 0x40]
add ebx, 1
cmp ebx, 2
lea ecx, [edi + eax]
mov dword [esp + 0x30], ebx
jg 0x4e99bb
mov ebx, dword [esp + 0x7c]
jmp 0x4e98fd
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xc32188
mov dword [esp + 4], 0
mov dword [esp], 7
call fcn.0040f28e
movzx ecx, byte [esp + 0x6b]
mov ebx, dword [esp + 0x7c]
jmp 0x4e96f6
mov eax, dword [esp + 0x34]
mov ebx, 0x80808081
mov edi, dword [esp + 0x34]
imul ebx
mov eax, dword [esp + 0x34]
add edx, dword [esp + 0x34]
sar eax, 0x1f
sar edx, 7
sub edx, eax
lea ecx, [edx + edi + 0x40]
mov dword [ebp + 0xa8], ecx
mov dword [esp], ecx
call fcn.00a5b598
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [ebp + 0xa4], eax
mov edx, eax
mov byte [eax], 2
add edx, 1
movzx eax, word [esp + 0x40]
cmp eax, 0xfe
jbe 0x4e9a1c
mov byte [edx], 0xff
sub eax, 0xff
add edx, 1
add ecx, 1
jmp 0x4e9a05
mov byte [edx], al
lea ebx, [ecx + 2]
xor ecx, ecx
mov edx, dword [esp + 0x28]
movzx eax, word [esp + 0x42]
add edx, ebx
cmp eax, 0xfe
jbe 0x4e9a45
mov byte [edx], 0xff
sub eax, 0xff
add edx, 1
add ecx, 1
jmp 0x4e9a2e
mov byte [edx], al
lea ebx, [ecx + ebx + 1]
xor edi, edi
movzx ecx, word [esp + edi*2 + 0x40]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], ecx
lea ecx, [ebx + eax]
mov edx, dword [esp + edi*4 + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00a5b5c0
movzx ecx, word [esp + edi*2 + 0x40]
add edi, 1
add ebx, ecx
cmp edi, 2
jle 0x4e9a4d
mov dword [ebp + 0xa8], ebx
mov dword [esp + 4], ebx
mov edi, dword [ebp + 0xa4]
mov dword [esp], edi
call fcn.00a5b5a8
mov dword [ebp + 0xa4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc321e0
mov dword [esp + 4], 6
mov dword [esp], 7
call fcn.0040f28e
mov dword [esp + 0x38], 1
jmp 0x4e99ad