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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x178
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4d254d
mov esi, dword [ebx + 0x10]
mov eax, esi
and eax, 0xff
je 0x4d254d
cmp eax, 4
jne 0x4d20f8
mov eax, dword [ebp + 0x3c]
mov esi, dword [ebx + 0x18]
and eax, 0xffffff00
add esi, 8
and eax, 0xfffff0ff
push esi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x3c], eax
call fcn.004d1ba0
add esp, 4
test eax, eax
jne 0x4d20d9
mov al, byte [esi + 0x10]
test al, al
je 0x4d2030
push esi
call fcn.004d1fb0
add esp, 4
lea eax, [ebp + 0x2c]
push eax
call fcn.004d1f60
and dword [eax + 4], 0xfffffffe
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x18]
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x3c]
xor ecx, eax
and ecx, 0x100
xor eax, ecx
add esp, 4
cmp esi, edi
mov dword [ebp + 0x3c], eax
je 0x4d20d9
mov esi, dword [esi + 0xc]
cmp esi, edi
je 0x4d20d9
cmp dword [esi + 0x18], edi
je 0x4d20d9
call fcn.00441210
mov edx, dword [eax]
mov dword [ebp - 0x64], edx
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x64]
push edi
mov dword [ebp - 0x60], edi
push edx
mov dword [ebp + 0x68], eax
mov dword [eax], ecx
call sub.MSVCR71.dll__setjmp3
add esp, 8
test eax, eax
jne 0x4d20bd
mov eax, dword [ebp + 0x70]
mov ebx, dword [ebp + 0x7c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp + 0x6c]
push edi
add eax, 0xc
push eax
mov eax, dword [edx + 0x18]
add ecx, 4
push ecx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0053e390
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp - 0x64]
add esp, 0x10
mov dword [edx], eax
jmp 0x4d20d9
lea ecx, [ebp + 0x2c]
push ecx
call fcn.004d1f20
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
push edx
push eax
call fcn.0047e830
mov ebx, dword [ebp + 0x7c]
add esp, 0xc
push ebx
call fcn.004d1d40
mov ecx, 7
lea esi, [ebp + 0x2c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
add esp, 4
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4d2244
mov ebx, dword [ebx + 0x18]
mov ecx, dword [ebx + 4]
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ecx
call fcn.0053d520
mov al, byte [ebx + 0x34]
add esp, 4
test al, al
je 0x4d212c
lea eax, [ebx + 0x24]
push eax
call fcn.004d1fb0
add esp, 4
mov al, byte [ebx + 0x18]
test al, al
je 0x4d213f
add ebx, 8
push ebx
call fcn.004d1fb0
add esp, 4
call fcn.00441210
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp + 0x70], eax
mov dword [eax], edx
lea eax, [ebp - 0xa4]
push edi
push eax
call sub.MSVCR71.dll__setjmp3
mov ebx, dword [ebp + 0x7c]
add esp, 8
test eax, eax
jne 0x4d21f8
mov ecx, dword [ebp + 0x68]
mov edx, dword [ecx + 0x3c]
cmp edx, edi
je 0x4d2192
mov eax, dword [edx + 0xc]
cmp eax, edi
je 0x4d2192
cmp dword [eax + 0x18], edi
je 0x4d2192
xor esi, esi
jmp 0x4d2197
mov esi, 1
mov ecx, dword [ecx + 0x20]
cmp ecx, edi
je 0x4d21ae
mov eax, dword [ecx + 0xc]
cmp eax, edi
je 0x4d21ae
cmp dword [eax + 0x18], edi
je 0x4d21ae
xor eax, eax
jmp 0x4d21b3
mov eax, 1
cmp esi, edi
jne 0x4d21df
cmp eax, edi
jne 0x4d21df
mov ecx, dword [ecx + 0xc]
mov edx, dword [edx + 0xc]
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x6c]
push eax
mov eax, dword [0x6bf1f4]
add eax, 0xc4
push eax
push ecx
push edx
call fcn.0053e680
add esp, 0x18
push ebx
call fcn.004d1f20
push ebx
call fcn.004d1f60
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp - 0xb4]
mov dword [eax], ecx
jmp 0x4d221b
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x4d2208
push eax
call fcn.00539720
add esp, 4
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
push edx
push eax
call fcn.0047e830
mov edi, dword [ebx + 0x18]
add edi, 0xc
mov ecx, 8
lea esi, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
add esp, 8
and ecx, 0xfffffffe
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4d235b
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp + 0x50], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp + 0x48], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x54], edx
mov edx, dword [eax + 0x10]
mov dword [ebp + 0x58], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp + 0x4c], edx
mov edx, dword [eax + 0x18]
shr esi, 0xb
shr edi, 0xa
mov dword [ebp + 0x60], ecx
mov ecx, dword [ebx + 0x14]
and esi, 1
and edi, 1
test ecx, ecx
mov dword [ebp + 0x5c], edx
mov edx, dword [eax + 0x20]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x64], edx
je 0x4d22cb
mov ecx, dword [ecx + 4]
cmp dword [ecx], 2
jne 0x4d22cb
inc word [eax]
mov eax, dword [ebx + 0x14]
inc word [eax]
mov ecx, 7
mov esi, ebx
mov edi, 0x69798c
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x68]
mov esi, dword [ebp + 0x6c]
mov dword [0x6979bc], 1
push ebx
call fcn.004d1f20
push ebx
call fcn.004d1f60
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
lea ecx, [eax + 0xc]
and edx, 0xfffffffe
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push ecx
push edx
push eax
mov dword [ebp + 0x70], ecx
call fcn.0053cb70
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
push ecx
push edx
push eax
call fcn.0053cd40
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
push edx
push eax
call fcn.0053cd40
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x60]
push ecx
push edx
push eax
call fcn.0053cd40
mov ecx, dword [ebp + 0x70]
push ecx
call fcn.0053ccb0
mov edx, dword [ebx + 0x10]
and esi, 1
shl esi, 1
and edi, 1
or esi, edi
shl esi, 0xa
and edx, 0xfffff3ff
add esp, 0x3c
or esi, edx
mov dword [ebx + 0x10], esi
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4d2544
mov esi, dword [ebx + 0x18]
mov eax, dword [esi + 0xa0]
shr eax, 8
and eax, 1
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp + 0x68], esi
call fcn.0053d520
call fcn.005c6a50
fstp dword [esi + 0x40]
mov ecx, dword [0x6bf1f4]
mov edx, dword [ecx + 0xd4]
movzx eax, byte [edx + 0x10]
mov edi, dword [esi + 0x80]
shl eax, 5
xor eax, edi
and eax, 0x60
mov ecx, edi
xor ecx, eax
mov dword [esi + 0x80], ecx
mov eax, ecx
mov ecx, dword [0x6bf1f4]
mov edx, dword [ecx + 0xd4]
mov ecx, dword [edx + 0x24]
shl ecx, 7
xor ecx, eax
and ecx, 0x80
xor ecx, eax
mov dword [esi + 0x80], ecx
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x74], ecx
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x78], ecx
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 0x30]
lea edi, [esi + 0x44]
push edi
mov dword [esi + 0x7c], ecx
call fcn.00510890
add esp, 8
cmp eax, 1
jne 0x4d242a
lea edx, [esi + 0x5c]
push edx
push edi
call fcn.00510640
add esp, 8
lea eax, [esi + 0x90]
push eax
call fcn.004d1fb0
mov esi, dword [esi + 0xa8]
add esp, 4
test esi, esi
je 0x4d24fd
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4d24fd
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4d24fd
call fcn.00441210
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], 0
mov dword [ebp + 0x6c], eax
mov dword [eax], edx
lea eax, [ebp - 0xf4]
push 0
push eax
call sub.MSVCR71.dll__setjmp3
add esp, 8
test eax, eax
jne 0x4d24d5
push eax
mov eax, dword [ebp + 0x68]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [eax + 4]
push edx
mov edx, dword [eax + 0xa8]
lea ecx, [eax + 0x84]
mov eax, dword [edx + 0xc]
push ecx
push eax
call fcn.005e1e20
mov ebx, dword [ebp + 0x7c]
push ebx
call fcn.004d1f20
push ebx
call fcn.004d1f60
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp - 0x104]
add esp, 0x1c
mov dword [ecx], edx
jmp 0x4d250c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d24e5
push eax
call fcn.00539720
add esp, 4
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf8]
push eax
push ecx
call fcn.0047e830
mov ebx, dword [ebp + 0x7c]
jmp 0x4d2509
push ebx
call fcn.004d1f20
push ebx
call fcn.004d1f60
add esp, 8
mov edi, dword [ebx + 0x18]
add edi, 0xc
mov ecx, 8
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
and dword [eax + 4], 0xfffffffe
mov eax, dword [ebp + 0x70]
mov esi, dword [ebx + 0x10]
shl eax, 8
xor eax, esi
and eax, 0x100
mov ecx, esi
xor ecx, eax
mov dword [ebx + 0x10], ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret
push edi
call fcn.0044b1f0
add esp, 4
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret