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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x30]
mov byte [ebp - 1], 0
jbe 0x4da00f
lea esi, [edi + 4]
mov eax, dword [esi]
test al, 1
je 0x4d9ff3
or eax, 6
mov dword [esi], eax
push dword [esi - 4]
push dword [0x5c4b7c]
call fcn.0049c938
test al, al
jne 0x4e05f7
add esi, 8
dec ebx
jne 0x4d9fe8
mov ebx, dword [ebp + 0x38]
test ebx, ebx
jbe 0x4da03f
mov eax, dword [ebp + 0x3c]
add eax, 8
mov ecx, ebx
mov esi, dword [eax - 8]
cmp esi, dword [0x5c4d10]
je 0x4df1ba
cmp esi, dword [0x5c4d40]
je 0x4df1db
add eax, 0xc
dec ecx
jne 0x4da01e
lea eax, [ebp - 0x28]
push eax
call fcn.0040e547
xor esi, esi
cmp dword [ebp + 0x40], esi
jne 0x508d43
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x20]
push esi
call fcn.004aa24d
test eax, eax
jl 0x4da382
push 0x64546553
push 0x38
push 0
call fcn.0047a005
mov edi, eax
test edi, edi
je 0x536bbc
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x34]
lea eax, [ebx + ebx*2]
shl eax, 2
mov dword [ebp - 0x1c], eax
add eax, 3
push 0xfffffffffffffffc
pop ebx
and eax, ebx
lea ecx, [ecx*8 + 3]
add edx, 3
mov dword [ebp - 0x20], eax
and ecx, ebx
add ecx, eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
and edx, ebx
add edx, ecx
mov dword [ebp - 8], edx
movzx eax, byte [eax + 1]
push eax
call fcn.004ab04a
mov ecx, dword [ebp - 8]
add eax, 3
and eax, ebx
lea eax, [eax + ecx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x44]
movzx eax, byte [eax + 1]
push eax
call fcn.004ab04a
mov ecx, dword [ebp + 0x48]
add eax, 3
and eax, ebx
test ecx, ecx
mov dword [ebp + 0x20], eax
je 0x4da0f6
movzx ecx, word [ecx + 2]
add ecx, 3
and ecx, ebx
add eax, ecx
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp - 8]
add ecx, 0xa0
cmp eax, 0x1f4
mov dword [ebp - 0x18], ecx
jae 0x4e0600
lea eax, [ecx + 0x1f4]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x34]
push eax
push 0
push dword [ebp + 0x40]
push ecx
push 0
push 1
push dword [ebp + 0x14]
push dword [0x5c4ee0]
push dword [ebp + 0xc]
call fcn.00496525
test eax, eax
mov ebx, dword [ebp + 0x34]
mov dword [ebp + 0x14], eax
jl 0x536bd7
lea eax, [ebx + 0x30]
push edi
mov dword [eax], edi
call fcn.00412eef
lea eax, [ebx + 0x10]
push eax
call fcn.0040e547
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x98], eax
xor ecx, ecx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x9c], ecx
mov eax, dword [esi]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp + 0x4c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 0x24]
mov byte [ebx + 0x8c], cl
mov ecx, dword [eax]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x84], eax
movzx eax, byte [ebp - 1]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x40]
sub eax, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp + 0x54], esi
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x7c], esi
mov eax, dword [ebp - 8]
mov dword [ebx + 0x58], eax
lea eax, [ebx + 0x90]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov dword [eax], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x78], esi
jne 0x536bef
mov dword [eax], esi
cmp dword [ebp + 0x58], esi
jne 0x536c03
mov dword [ebx + 0x94], esi
mov ecx, dword [ebp + 0x38]
mov esi, dword [ebp + 0x3c]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
shr ecx, 2
lea eax, [ebx + 0xa0]
mov dword [ebx + 0x74], eax
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
sub dword [ebp - 8], ecx
mov esi, dword [ebp + 0x2c]
add eax, ecx
lea ecx, [eax + esi*8 + 8]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 1]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x68], eax
mov edx, dword [ebp - 8]
mov ecx, 0x1fffffff
sub ecx, esi
lea ecx, [edx + ecx*8]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x10]
mov dword [ebp + 0x40], eax
push eax
push ecx
push dword [ebp + 0x28]
mov dword [ebp - 8], ecx
push 1
call fcn.004a1669
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x40]
add eax, 8
push eax
push dword [ebp - 8]
push dword [ebp + 0x30]
push esi
call fcn.004a1669
push 0x64546553
push dword [ebp + 0x20]
xor esi, esi
push 1
mov dword [ebp + 0x2c], eax
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x50], esi
call fcn.0047a005
cmp eax, esi
mov dword [ebx + 0x78], eax
je 0x536c28
mov edi, eax
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0x70], edi
movzx eax, byte [eax + 1]
push eax
call fcn.004ab04a
push dword [ebp + 0x44]
mov dword [ebp + 0x40], eax
push edi
push eax
call fcn.00498e2c
mov eax, dword [ebp + 0x40]
add eax, 3
and eax, 0xfffffffc
add edi, eax
mov eax, dword [ebp + 0x48]
cmp eax, esi
je 0x4da305
mov dword [ebx + 0x7c], edi
movzx ecx, word [eax + 2]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp byte [ebp + 0x50], 0
jne 0x5029b8
mov eax, dword [0x5c4ee0]
add eax, 0x68
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00495a6b
cmp eax, esi
mov dword [ebp + 0x2c], eax
jl 0x4e0607
mov eax, dword fs:[0x124]
movsx eax, byte [eax + 0x140]
push eax
push dword [0x5c4c6c]
push dword [0x5c4c68]
call fcn.004a1d33
test al, al
je 0x536c39
push dword [ebp + 8]
lea eax, [ebp - 0xb8]
push esi
push esi
push esi
push eax
push ebx
call fcn.00496a64
mov dword [ebp + 0x2c], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00495ac8
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x54
mov edx, dword [eax - 4]
cmp edx, dword [0x5c4d14]
jne 0x4da02d
test byte [eax], 2
je 0x4da02d
or byte [ebp - 1], 1
jmp 0x4da02d
mov edx, dword [eax - 4]
cmp edx, dword [0x5c4d44]
jne 0x4da039
test byte [eax], 2
je 0x4da039
or byte [ebp - 1], 0x80
jmp 0x4da039
or byte [ebp - 1], 8
jmp 0x4da009
add eax, ecx
jmp 0x4da113
mov ecx, ebx
call fcn.0040a930
jmp 0x4da37f
mov dword [eax], esi
jmp 0x4da37f
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0xc8], esi
je 0x5029d7
push esi
push esi
push esi
push esi
push esi
push ebx
call fcn.00496a64
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x2c], esi
mov eax, dword [ebp + 8]
jl 0x4e0613
mov dword [eax], ebx
jmp 0x4da37f
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [ebp + 0x40]
call fcn.0049c938
test al, al
jne 0x4da053
cmp dword [ebp + 0x2c], 0
mov byte [ebp - 9], al
jbe 0x536bcd
cmp byte [ebp - 9], 0
jne 0x4da056
push dword [edi + esi*8]
push dword [ebp + 0x40]
call fcn.0049c938
test al, al
je 0x508d93
test byte [edi + esi*8 + 4], 8
je 0x536bcd
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
mov byte [ebp - 9], 1
inc esi
cmp esi, dword [ebp + 0x2c]
jb 0x508d65
jmp 0x536bc3
mov edi, 0xc000009a
jmp 0x536be2
cmp byte [ebp - 9], 0
jne 0x4da056
mov eax, 0xc000005a
jmp 0x4da382
push 0
push edi
call fcn.0047a1e6
mov edi, dword [ebp + 0x14]
push esi
call fcn.004aa150
mov eax, edi
jmp 0x4da382
push dword [ebp + 0x54]
push eax
call fcn.0056c03a
test eax, eax
jl 0x536c28
jmp 0x4da1ff
push 0x20206553
push 0xc
push 1
call fcn.0047a005
cmp eax, esi
mov dword [ebx + 0x94], eax
je 0x536c28
mov esi, dword [ebp + 0x58]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4da20e
mov ecx, ebx
call fcn.0040a930
mov eax, 0xc0000017
jmp 0x4da382
mov ecx, ebx
mov dword [ebp + 0x2c], 0xc0000061
call fcn.0040a930
jmp 0x4da373