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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1004d402
push eax
call dword [0x1013dff4]
add esp, 4
mov ecx, dword [ebx + 0x18]
cmp byte [ecx + 9], 0
je 0x1004d419
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x1004d419
call fcn.100423f0
mov eax, dword [ebx]
test eax, eax
je 0x1004d430
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1004d430
push eax
call dword [0x1013dff4]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x1004d445
cmp esi, 5
je 0x1004d445
cmp esi, 6
jne 0x1004d9fa
cmp dword [ebx], 0
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x20], 0
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
je 0x1004d477
cmp byte [edx + 0x14], 2
jne 0x1004d477
mov esi, 5
jmp 0x1004d490
xor esi, esi
cmp byte [ecx + 8], 0
jne 0x1004d490
xor edx, edx
call fcn.100452a0
mov esi, eax
mov dword [esp + 0x20], 1
cmp dword [ebx + 0xc], 0
jne 0x1004d4be
test esi, esi
jne 0x1004d527
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 4]
push esi
push 0xffffffffffffffff
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x20]
call fcn.10044c80
add esp, 8
cmp eax, 7
jne 0x1004d4c2
mov esi, eax
jmp 0x1004d527
test esi, esi
jne 0x1004d527
cmp dword [ebx + 0xc], 0
jne 0x1004d527
mov ecx, dword [ebx + 4]
mov edx, 2
call fcn.100452a0
mov esi, eax
test esi, esi
jne 0x1004d527
mov edi, dword [ebx + 4]
mov dword [ebx + 0xc], 1
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
je 0x1004d506
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1004d506
mov ecx, edi
call fcn.100423f0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x28]
bswap eax
mov dword [ebx + 8], eax
cmp byte [edi + 9], 0
je 0x1004d527
add dword [edi + 0xc], 0xffffffff
jne 0x1004d527
mov ecx, edi
call fcn.100423b0
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edi, dword [edx + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x44], ecx
movzx eax, byte [eax + 5]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1004d55e
cmp eax, 5
jne 0x1004d55e
cmp edi, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x2c]
xor eax, eax
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
test ecx, ecx
js 0x1004d576
cmp eax, ecx
jge 0x1004d5e5
mov edi, dword [ebx + 0x10]
cmp edi, edx
ja 0x1004d5e5
test esi, esi
jne 0x1004d620
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x1013da9c]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x1004d5d7
push 2
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004d5d7
mov eax, dword [esp + 0x3c]
mov edx, edi
push esi
mov ecx, ebx
push dword [eax + 4]
call fcn.1004d130
mov ecx, dword [esp + 0x44]
add esp, 8
mov esi, eax
call fcn.1003e150
mov eax, dword [esp + 0x40]
inc dword [ebx + 0x10]
inc eax
mov edx, dword [esp + 0x10]
jmp 0x1004d567
test esi, esi
jne 0x1004d620
mov eax, edx
mov dword [ebx + 0x24], edx
sub eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x10], edx
ja 0x1004d629
cmp dword [ebx + 0x28], esi
jne 0x1004d969
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebx + 0x2c], eax
mov dword [ecx + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x1004d969
cmp esi, 0x65
jne 0x1004d969
test edx, edx
jne 0x1004d67f
mov edi, dword [ebx + 4]
cmp byte [edi + 9], dl
je 0x1004d644
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x1004d644
mov ecx, edi
call fcn.100423f0
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [edi + 4]
call fcn.100451a0
cmp byte [edi + 9], 0
mov esi, eax
je 0x1004d66b
add dword [edi + 0xc], 0xffffffff
jne 0x1004d66b
mov ecx, edi
call fcn.100423b0
mov edi, 1
mov dword [esp + 0x10], edi
test esi, esi
je 0x1004d683
cmp esi, 0x65
jne 0x1004d69a
jmp 0x1004d683
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 8]
mov edx, 1
mov ecx, dword [ebx + 4]
inc eax
push eax
call fcn.1004bae0
add esp, 4
mov esi, eax
test esi, esi
jne 0x1004d969
mov ecx, dword [ebx]
test ecx, ecx
je 0x1004d6ad
call fcn.10070ae0
cmp dword [esp + 0x14], 5
jne 0x1004d73e
mov ecx, dword [ebx + 4]
mov edx, 0xffdf
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
and word [eax + 0x16], dx
xor edx, edx
call fcn.100452a0
mov esi, eax
test esi, esi
jne 0x1004d729
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x2c], eax
cmp byte [eax + 0x12], 2
jne 0x1004d6f6
cmp byte [eax + 0x13], 2
je 0x1004d729
mov ecx, dword [esp + 0x14]
mov edx, 2
call fcn.100452a0
mov esi, eax
test esi, esi
jne 0x1004d729
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x48]
call fcn.1003e900
mov esi, eax
test esi, esi
jne 0x1004d729
mov eax, dword [esp + 0x2c]
mov word [eax + 0x12], 0x202
mov eax, dword [esp + 0x3c]
mov ecx, 0xffdf
and word [eax + 0x16], cx
test esi, esi
jne 0x1004d969
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jge 0x1004d786
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov ecx, eax
lea eax, [ecx - 1]
add eax, edi
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x1013da9c]
div dword [ecx + 0x20]
lea ecx, [edi - 1]
inc eax
cmp edi, eax
mov eax, dword [esp + 0x10]
cmovne ecx, edi
mov dword [esp + 0x14], ecx
mov edi, ecx
mov ecx, dword [esp + 0x44]
jmp 0x1004d792
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x10]
imul edi, eax
mov edx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x1004daff
imul edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
nop word [eax + eax]
cmp edi, eax
ja 0x1004d816
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x1013da9c]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x1004d80b
push 0
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004d80b
mov ecx, dword [esp + 0x40]
call fcn.1003e900
mov ecx, dword [esp + 0x40]
mov esi, eax
call fcn.1003e150
mov eax, dword [esp + 0x28]
inc edi
test esi, esi
je 0x1004d7c0
jmp 0x1004d82c
test esi, esi
jne 0x1004d82c
mov ecx, dword [esp + 0x18]
xor edx, edx
push 1
call fcn.1003ea50
add esp, 4
mov esi, eax
mov eax, dword [0x1013da9c]
add eax, dword [esp + 0x44]
cdq
mov ecx, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
cmp ecx, edx
jg 0x1004d850
jl 0x1004d85c
cmp eax, dword [esp + 0x10]
jb 0x1004d85c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edx
mov eax, dword [0x1013da9c]
add eax, dword [esp + 0x1c]
cdq
mov dword [esp + 0x28], eax
mov edi, eax
mov dword [esp + 0x3c], edx
mov ecx, edx
test esi, esi
jne 0x1004d969
nop word [eax + eax]
cmp ecx, dword [esp + 0x40]
jg 0x1004da4d
jl 0x1004d896
cmp edi, dword [esp + 0x30]
jae 0x1004da4d
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x44]
push 0
push esi
mov eax, ebx
mov dword [esp + 0x4c], 0
cdq
push edx
push eax
push ecx
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], edx
call fcn.10108250
inc eax
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004d8f3
push dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push edi
push ebx
mov ecx, dword [edx]
push dword [eax + 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x1004d949
test byte [ecx + 0x1c], 0x20
je 0x1004d944
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.100af620
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [esp + 0x38]
add esp, 0x10
jmp 0x1004d949
call fcn.10038a10
add edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
adc ecx, dword [esp + 0x48]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x1004d880
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x1004d9e9
mov ecx, dword [ebx + 0x18]
xor edx, edx
call fcn.10045ee0
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
je 0x1004d9e9
cmp byte [edi + 9], 0
je 0x1004d999
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1004d999
mov ecx, edi
call fcn.100423f0
cmp byte [edi + 8], 2
jne 0x1004d9cf
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
call fcn.1003ec30
test eax, eax
jne 0x1004d9d6
mov eax, dword [esp + 0x20]
dec dword [edi + 0x14]
mov ecx, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
call fcn.100384d0
mov eax, dword [esp + 0x20]
mov dword [eax + 0x3c], 0
mov ecx, edi
call fcn.10045f80
cmp byte [edi + 9], 0
je 0x1004d9e9
add dword [edi + 0xc], 0xffffffff
jne 0x1004d9e9
mov ecx, edi
call fcn.100423b0
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx]
test eax, eax
je 0x1004da11
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1004da11
push eax
call dword [0x1013dffc]
add esp, 4
mov ecx, dword [ebx + 0x18]
cmp byte [ecx + 9], 0
je 0x1004da25
add dword [ecx + 0xc], 0xffffffff
jne 0x1004da25
call fcn.100423b0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1004da39
push eax
call dword [0x1013dffc]
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1004d965
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004d965
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x4c], ecx
jl 0x1004da9b
jg 0x1004da89
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x48], eax
jbe 0x1004da9b
mov eax, dword [ebx]
push ecx
push dword [esp + 0x14]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x1004d965
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1004dab5
lea eax, [esi + 0xc]
jmp 0x1004dac6
push 0
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov edx, dword [esp + 0x24]
add esp, 0xc
xor esi, esi
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x1004daf9
cmp byte [edx + 7], 0
jne 0x1004daf9
movzx ecx, byte [edx + 0xa]
mov edx, dword [edx + 0x3c]
test ecx, ecx
je 0x1004daf7
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov ebx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
jmp 0x1004db16
xor esi, esi
mov ebx, dword [esp + 0x24]
jmp 0x1004db16
mov eax, dword [esp + 0x18]
xor edx, edx
push 0
mov ecx, eax
mov dword [eax + 0x18], edi
call fcn.1003ea50
add esp, 4
mov esi, eax
test esi, esi
jne 0x1004d969
mov edi, dword [ebx + 4]
cmp byte [edi + 8], 0
je 0x1004dbaf
cmp byte [edi + 9], 0
je 0x1004db41
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1004db41
mov ecx, edi
call fcn.100423f0
cmp byte [edi + 8], 2
jne 0x1004db95
mov eax, dword [edi + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [eax]
call fcn.1003ec30
mov esi, eax
test esi, esi
je 0x1004db7b
cmp byte [edi + 9], 0
je 0x1004d969
add dword [edi + 0xc], 0xffffffff
jne 0x1004d969
mov ecx, edi
call fcn.100423b0
jmp 0x1004d969
mov esi, dword [esp + 0x48]
dec dword [edi + 0x14]
mov ecx, dword [esi + 0x3c]
mov byte [esi + 0x14], 1
call fcn.100384d0
mov dword [esi + 0x3c], 0
mov ecx, edi
call fcn.10045f80
cmp byte [edi + 9], 0
je 0x1004dbaf
add dword [edi + 0xc], 0xffffffff
jne 0x1004dbaf
mov ecx, edi
call fcn.100423b0
mov esi, 0x65
jmp 0x1004d969