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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 2], 1
jne 0x1004d767
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004cd95
cmp byte [eax + 2], 1
jne 0x1004d767
mov eax, dword [edi + 0x58]
push ebx
push esi
xor esi, esi
lea edx, [ebp - 0x24]
mov dword [edi + 0x60], 0
call fcn.10048b20
mov ecx, dword [edi + 0x28]
mov ebx, dword [ebp + 8]
cmp ecx, 0x4000
je 0x1004ce90
mov eax, dword [ebx + 0x10c]
imul eax, eax, 0xf0
add eax, dword [ebx + 0x114]
lea edx, [edi + 0x2c]
lea esi, [eax + 0xe4]
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
and eax, 0x20
push eax
mov eax, dword [ebx + 8]
push ecx
lea ecx, [edi + 0x3c]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.100479f0
add esp, 0x20
test eax, eax
je 0x1004ce12
call dword [0x100f0e28]
pop esi
pop ebx
mov eax, 0xfffffffd
pop edi
mov esp, ebp
pop ebp
ret
test byte [edi + 0x20], 0x10
je 0x1004ce2c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.10047790
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, edi
mov ecx, 0x19
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 8]
test esi, esi
je 0x1004ce55
lea edx, [eax + 0x64]
mov edi, edx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0xc]
test esi, esi
je 0x1004ce6e
lea edx, [eax + 0xa4]
mov ecx, 0x10
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x10c]
mov ecx, dword [ebx + 0x60]
inc eax
inc ecx
cdq
idiv ecx
inc dword [ebx + 0x110]
mov dword [ebx + 0x10c], edx
mov edi, dword [ebp + 0xc]
jmp 0x1004ce90
xor esi, esi
cmp dword [ebx + 0x120], esi
je 0x1004cecc
mov eax, dword [ebx + 0x11c]
cmp dword [ebx + 0x118], eax
jl 0x1004d50a
test byte [ebx + 0x28], 1
je 0x1004ceba
cmp eax, esi
jg 0x1004d58a
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x11c], esi
mov dword [ebx + 0x118], esi
cmp dword [ebx + 0x110], esi
je 0x1004d631
mov eax, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
mov ecx, dword [ebx + 0x114]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebx + 0x108]
imul eax, eax, 0xf0
mov dword [ebx + 0xa0], edx
lea edx, [eax + ecx + 0xe4]
mov eax, dword [ebx + 0xa0]
push edx
add eax, 0x38
push eax
call fcn.100470f0
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x60]
mov esi, eax
inc eax
imul esi, esi, 0xf0
cdq
inc ecx
idiv ecx
mov eax, dword [ebx + 0x1c]
add esi, dword [ebx + 0x114]
dec dword [ebx + 0x110]
add esp, 8
mov dword [ebx + 0x108], edx
test eax, eax
jg 0x1004cf4e
mov eax, dword [esi + 0x1c]
mov edx, dword [ebx + 0xa0]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 0x248]
mov eax, dword [ebx + 0xa0]
mov dword [eax], ecx
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x30], edx
mov ecx, dword [ebx + 0x74]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ecx + 4]
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
inc dword [ebx + 0x248]
mov edx, dword [esi + 4]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0xa0]
mov ecx, dword [esi + 0x20]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 0xa0]
mov eax, dword [esi + 0x24]
mov dword [edx + 0x10], eax
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0x68]
mov dword [ecx + 0x20], edx
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x68]
mov dword [eax + 0x24], ecx
test byte [edi + 0x20], 0x10
je 0x1004cfe6
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebx + 0xa0]
push eax
push ecx
add edx, 0x38
push edx
call fcn.10047790
add esp, 0x10
mov eax, dword [esi + 0x4c]
mov ecx, dword [ebx + 0xa0]
mov edx, dword [esi + 0x50]
mov dword [ecx + 0x18], edx
mov ecx, dword [ebp + 0x10]
push ecx
push 8
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xa0]
push 0
push eax
lea edx, [eax + 0x18]
push ebx
lea ecx, [ebp - 4]
call fcn.10049e50
mov edi, dword [ebp - 4]
add esp, 0x14
test edi, edi
jle 0x1004d0f3
dec edi
test edi, edi
je 0x1004d032
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
cmp edi, 2
jne 0x1004d047
mov edx, dword [ebx + 0x11c]
cmp edx, dword [ebx + 0x60]
jl 0x1004d047
mov edi, 1
inc dword [ebx + 0x80]
mov eax, dword [ebx + 0xa0]
test byte [eax + 0xc], 1
mov ecx, dword [ebx + 0x80]
je 0x1004d088
mov edx, dword [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x34]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx + 8]
push str._d__st:_lld__if:_d
push 5
push 5
push edx
push ecx
add eax, 0x38
push eax
call fcn.100588b0
add esp, 0x28
cmp edi, 2
jne 0x1004d1cf
mov eax, dword [ebx + 0xa0]
test byte [eax + 0xc], 1
je 0x1004d0bd
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push str.BVOP
push 0xc8
push 5
push edx
push ecx
add eax, 0x38
push eax
call fcn.100588b0
add esp, 0x18
mov esi, dword [esi + 0x50]
cmp esi, 1
jge 0x1004d161
mov edx, dword [ebx + 0xa4]
mov edx, dword [edx + 0x18]
mov ecx, dword [ebx + 0xa0]
add edx, dword [ecx + 0x18]
mov eax, 0x51eb851f
imul edx, dword [ebx + 0x2c]
shr edx, 1
add edx, dword [ebx + 0x30]
mul edx
shr edx, 5
mov dword [ecx + 0x18], edx
jmp 0x1004d16a
mov edx, dword [ebx + 0x80]
xor edi, edi
cmp edx, edi
je 0x1004d156
mov ecx, dword [ebx + 0x5c]
cmp ecx, edi
jle 0x1004d10a
cmp edx, ecx
jge 0x1004d156
mov eax, dword [ebx + 0x124]
cmp eax, edi
je 0x1004d122
mov edi, dword [ebx + 0x118]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x44]
jmp 0x1004d124
xor eax, eax
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebx + 0x11c]
push eax
push edx
mov edx, dword [ebx + 0xa4]
push ecx
mov ecx, dword [ebx + 0xa0]
push ebx
push ecx
add edx, 0x38
push edx
call fcn.10061ee0
add esp, 0x20
mov edi, eax
jmp 0x1004d022
mov dword [ebx + 0x80], edi
jmp 0x1004d047
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x18], esi
mov eax, dword [ebx + 0xa0]
mov ecx, dword [eax + 0x18]
cmp ecx, 1
jae 0x1004d181
mov dword [eax + 0x18], 1
jmp 0x1004d18d
cmp ecx, 0x1f
jbe 0x1004d18d
mov dword [eax + 0x18], 0x1f
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0xa0]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [ebx + 0xa0], edx
mov dword [eax], ecx
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
inc dword [ebx + 0x11c]
mov dword [ebx + 0xa0], ecx
mov dword [ebx + 0xa4], eax
jmp 0x1004ce88
test byte [ebx + 0x28], 1
jne 0x1004d220
cmp dword [ebx + 0x60], 0
jle 0x1004d220
mov eax, dword [ebx + 0xa0]
cmp dword [eax + 0x34], 0
jl 0x1004d212
jg 0x1004d1ef
cmp dword [eax + 0x30], 0
jbe 0x1004d212
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0xa4]
push edx
push 0x20
lea eax, [ebx + 0xa8]
push eax
push ecx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x14
jmp 0x1004d220
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004d220
mov dword [eax + 4], 0
test edi, edi
jne 0x1004d316
test byte [ebx + 0x28], 2
je 0x1004d40c
cmp dword [ebx + 0x11c], edi
jle 0x1004d40c
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x60]
cdq
sub dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x108]
sbb dword [ebx + 0x74], edx
add eax, ecx
cdq
inc ecx
idiv ecx
mov eax, dword [ebx + 0x114]
inc dword [ebx + 0x110]
or esi, 0xffffffff
add dword [ebx + 0x248], esi
add dword [ebx + 0x80], esi
mov dword [ebx + 0x108], edx
imul edx, edx, 0xf0
lea ecx, [edx + eax + 0xe4]
mov edx, dword [ebx + 0xa0]
push ecx
add edx, 0x38
push edx
call fcn.100470f0
add dword [ebx + 0x11c], esi
mov edx, dword [ebx + 0x124]
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebx + 0xa0]
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ebx + 0xa0], edx
mov dword [eax], ecx
mov eax, dword [ebx + 0xa0]
add esp, 8
test byte [eax + 0xc], 1
je 0x1004d2e6
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push str.CLOSED_GOP_BVOP__PVOP
push 0x64
push 5
push ecx
push edx
add eax, 0x38
push eax
call fcn.100588b0
add esp, 0x18
mov eax, dword [ebx + 0xa0]
mov ecx, dword [eax + 0x18]
imul ecx, ecx, 0x64
sub ecx, dword [ebx + 0x30]
mov dword [eax + 0x18], ecx
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0xa0]
dec edx
add dword [eax + 0x18], edx
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ecx + 0x18]
xor edx, edx
div dword [ebx + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0xa0]
test byte [eax + 0xc], 1
je 0x1004d342
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push str.PVOP
push 0xc8
push 5
push ecx
push edx
add eax, 0x38
push eax
call fcn.100588b0
add esp, 0x18
test byte [ebx + 0x18], 1
je 0x1004d369
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xa0]
push eax
push ecx
add edx, 0x38
push edx
lea eax, [ebx + 0xa8]
push eax
call fcn.10047120
add esp, 0x10
lea ecx, [ebp - 0x24]
push ecx
push ebx
call fcn.1004b6f0
add esp, 8
test eax, eax
je 0x1004d397
test byte [ebx + 0x28], 1
mov dword [ebx + 0x120], 1
je 0x1004d39d
cmp dword [ebx + 0x11c], 0
jg 0x1004ce88
test byte [ebx + 0x28], 1
jne 0x1004d3a3
cmp dword [ebx + 0x60], 0
jne 0x1004d3c4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0xa0]
push edx
push 0x20
lea eax, [ebx + 0xa8]
push eax
push ecx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x14
call dword [0x100f0e28]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x18], 0
je 0x1004d3f7
mov edx, dword [ebp - 0x1c]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
add eax, 7
shr eax, 3
add ecx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004d403
shr eax, 3
sub ecx, eax
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xa0]
test byte [eax + 0xc], 1
je 0x1004d438
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push 0x10075280
push 0xc8
push 5
push ecx
push edx
add eax, 0x38
push eax
call fcn.100588b0
add esp, 0x18
mov eax, dword [ebx + 0xa0]
mov ecx, 1
mov dword [ebx + 0x80], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x6c], edx
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x1004d465
cmp eax, 5
jle 0x1004d460
cmp eax, 0xf
jne 0x1004d465
mov dword [ebx + 0x50], eax
jmp 0x1004d468
mov dword [ebx + 0x50], ecx
cmp dword [ebx + 0x50], 0xf
jne 0x1004d488
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 0x54]
mov dword [eax], ecx
mov edx, dword [esi + 0x18]
lea ecx, [ebx + 0x58]
push ecx
push eax
mov dword [ecx], edx
call fcn.1004a630
add esp, 8
test byte [ebx + 0x6c], 1
je 0x1004d4b6
mov eax, dword [esi + 8]
test eax, eax
je 0x1004d4a2
push eax
mov eax, dword [ebx + 0x78]
push eax
call fcn.10054d10
add esp, 8
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1004d4b6
mov ecx, dword [ebx + 0x78]
push esi
push ecx
call fcn.10054e10
add esp, 8
mov eax, dword [ebx + 0xa0]
test byte [eax + 8], 0x20
jne 0x1004d4c9
and dword [eax + 0xc], 0xfffff9ff
test byte [ebx + 0x18], 1
je 0x1004d4f0
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xa0]
push edx
push eax
add ecx, 0x38
push ecx
lea edx, [ebx + 0xa8]
push edx
call fcn.10047120
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, ebx
call fcn.1004ac10
mov eax, dword [ebp + 0xc]
add esp, 4
or dword [eax + 0x60], 2
jmp 0x1004d37a
test byte [ebx + 0x18], 1
je 0x1004d53a
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x118]
push edx
mov edx, dword [ebx + 0x124]
push eax
mov eax, dword [edx + ecx*4]
add eax, 0x38
push eax
lea ecx, [ebx + 0xb4]
push ecx
call fcn.10047120
add esp, 0x10
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x124]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ecx + eax*4]
push edx
mov esi, ebx
call fcn.1004c590
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0x118]
push eax
mov eax, dword [ebx + 0x124]
push 0x20
lea ecx, [ebx + 0xb4]
push ecx
mov ecx, dword [eax + edx*4]
push ecx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x1c
inc dword [ebx + 0x118]
jmp 0x1004d3c4
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0xa0]
mov edi, dword [eax + 0x28]
add esi, esi
add esi, esi
add esi, esi
sub esi, dword [ebp - 8]
add esi, dword [ebp - 0x18]
mov dword [eax + 0x28], 0
mov eax, dword [ebx + 0xa0]
mov edx, dword [eax + 0x18]
push edx
push 0
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.10057740
lea edx, [ebp - 0x24]
call fcn.10048c70
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0x28], edi
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xa0]
add edx, edx
add edx, edx
add edx, edx
sub edx, dword [ebp - 8]
lea ecx, [ebx + 0xa8]
sub edx, esi
add edx, dword [ebp - 0x18]
shr edx, 3
add dword [eax + 0x120], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0xa0]
push eax
push 0x20
push ecx
push edx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x28
xor eax, eax
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x118], eax
jmp 0x1004d3c4
cmp dword [edi + 0x28], 0x4000
jne 0x1004d3c4
test byte [ebx + 0x28], 1
jne 0x1004d66a
cmp dword [ebx + 0x60], esi
jle 0x1004d66a
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0xa0]
push eax
push 0x20
lea ecx, [ebx + 0xa8]
push ecx
push edx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x14
mov eax, dword [ebx + 0x11c]
cmp eax, esi
jle 0x1004d746
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
mov dword [ebx + 0xa0], edx
mov dword [ebx + 0xa4], ecx
mov ecx, edx
mov edx, dword [ebx + 0x124]
dec eax
mov dword [ebx + 0x11c], eax
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ebx + 0xa0], edx
mov dword [eax], ecx
mov eax, dword [ebx + 0xa0]
mov ecx, dword [eax + 0x18]
imul ecx, ecx, 0x64
sub ecx, dword [ebx + 0x30]
mov dword [eax + 0x18], ecx
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0xa0]
dec edx
add dword [eax + 0x18], edx
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ecx + 0x18]
xor edx, edx
div dword [ebx + 0x2c]
mov dword [ecx + 0x18], eax
test byte [ebx + 0x18], 1
je 0x1004d703
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xa0]
push eax
push ecx
add edx, 0x38
push edx
lea eax, [ebx + 0xa8]
push eax
call fcn.10047120
add esp, 0x10
lea ecx, [ebp - 0x24]
push ecx
push ebx
mov dword [ebx + 0x34], 0xffffffff
call fcn.1004b6f0
add esp, 8
test byte [ebx + 0x28], 1
je 0x1004d758
cmp dword [ebx + 0x11c], esi
jne 0x1004d758
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0xa0]
push edx
push 0x20
lea eax, [ebx + 0xa8]
push eax
push ecx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x14
call dword [0x100f0e28]
pop esi
pop ebx
mov eax, 0xfffffffb
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x120], 1
jmp 0x1004d3c4
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret