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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x544
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x2c]
xor ebx, ebx
push 0x200
xor eax, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x80], 0xff
call fcn.004b15e0
add esp, 4
cmp edi, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
mov word [eax], bx
je 0x4c17f6
cmp dword [edi + 4], ebx
je 0x4c17f6
lea eax, [esp + 0x424]
push edi
push eax
call fcn.00489430
mov ecx, dword [eax]
add esp, 8
push ecx
lea edi, [esp + 0x78]
call fcn.00498aa0
mov eax, dword [esp + 0x424]
cmp eax, ebx
je 0x4c17f6
call fcn.004b16a0
cmp dword [0x10075ef0], ebx
je 0x4c18ce
mov edx, dword [esp + 0x74]
push edx
lea edi, [esp + 0x28c]
mov dword [esp + 0x28c], ebx
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], ebx
call fcn.00498aa0
push 0x100
xor eax, eax
mov dword [esp + 0x1bc], 0xff
call fcn.004b15e0
add esp, 4
push 0x1006b750
lea esi, [esp + 0x1b4]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ebx
mov byte [eax], bl
call fcn.00498280
mov edi, dword [esp + 0x288]
push edi
lea eax, [esp + 0x2e4]
call fcn.004ba0f0
mov eax, dword [eax]
add esp, 4
push eax
call fcn.00498280
mov eax, dword [esp + 0x2e0]
cmp eax, ebx
je 0x4c18a7
call fcn.004b16a0
mov dword [esp + 0x2e0], ebx
mov dword [esp + 0x2e4], ebx
mov dword [esp + 0x2e8], ebx
cmp edi, ebx
je 0x4c18b2
mov eax, edi
call fcn.004b16a0
push 0x100607b0
lea esi, [esp + 0x1b4]
call fcn.00498280
mov ecx, esi
push ecx
call fcn.0049ce70
mov esi, dword [ebp + 8]
push 0x200
xor eax, eax
mov dword [esp + 0xd4], 0xff
call fcn.004b15e0
add esp, 4
mov dword [esp + 0xc8], eax
mov word [eax], bx
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc8]
push edx
push eax
mov eax, esi
mov dword [esp + 0xd4], ebx
call fcn.004c4bc0
mov edi, dword [esp + 0xc8]
push 1
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004c1430
cmp dword [esp + 0x1c], ebx
jne 0x4c1940
cmp edi, ebx
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
je 0x4c4809
mov eax, edi
jmp 0x4c4804
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x27c]
mov dword [esp + 0x27c], eax
push edx
lea eax, [esi + 0x13c]
push eax
call fcn.004c9e30
test eax, eax
mov edi, dword [0x1005f1c8]
je 0x4c19ce
mov eax, dword [esp + 0x240]
cmp eax, ebx
mov dword [esp + 0xe4], eax
je 0x4c1985
push eax
call edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4c198f
push eax
call edi
lea ecx, [ebp + 0xc]
lea eax, [esi + 0x98]
push ecx
push eax
call fcn.004c9270
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [esp + 0x25c], edi
je 0x4c45e9
push 0x38
call fcn.004b1530
add esp, 4
cmp eax, ebx
je 0x4c19d7
mov esi, eax
call fcn.004bb5a0
mov dword [esp + 0x20], eax
jmp 0x4c19dd
mov dword [esp + 0xe4], ebx
jmp 0x4c1985
mov dword [esp + 0x20], ebx
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x108], eax
je 0x4c19f0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x108]
push ecx
lea edx, [ebp + 0xc]
push edx
add eax, 0x98
push eax
call fcn.004c8990
mov eax, dword [esp + 0x74]
sub esp, 0xc
mov edi, esp
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00498aa0
mov esi, dword [esp + 0x2c]
mov eax, esi
call fcn.004bb620
push 4
lea ecx, [esp + 0x60]
push ecx
call dword [0x10075f84]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x5c]
push eax
call edx
test eax, eax
je 0x4c1a94
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [eax], ebx
mov dword [ecx], 0xc0000022
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4c1a6f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], ebx
cmp esi, ebx
je 0x4c1a7b
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4c47f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c47f5
push 4
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
call dword [0x10075f84]
nop
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x13c]
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4c1ad9
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esp + 0x3c], ebx
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [esp + 0x3c], ecx
je 0x4c1aee
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax]
call ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x13c]
xor edx, edx
cmp ecx, ebx
setne dl
cmp eax, ebx
mov edi, edx
je 0x4c1b15
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x13c], ebx
cmp edi, ebx
je 0x4c1b69
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2cc]
push eax
call edx
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.004ca4a0
mov eax, dword [esp + 0x2c8]
cmp eax, ebx
je 0x4c1ab0
call fcn.004b16a0
mov dword [esp + 0x2c8], ebx
mov dword [esp + 0x2cc], ebx
mov dword [esp + 0x2d0], ebx
jmp 0x4c1ab0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call eax
test eax, eax
jne 0x4c238a
mov ecx, dword [0x10075e30]
mov esi, dword [0x1005f1dc]
mov edi, dword [ecx + 0x36c]
push 2
push ebx
push ebx
lea edx, [esp + 0x11c]
push edx
call esi
push eax
mov eax, dword [ebp + 0xc]
push eax
call esi
push eax
call edi
cmp eax, ebx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jne 0x4c2386
push 8
lea edx, [esp + 0x3f8]
push edx
call dword [0x10075f84]
mov dword [esp + 0xb4], 0x100
mov dword [esp + 0xe0], 1
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4c1bf0
mov eax, esi
call fcn.004b16a0
mov edi, dword [esp + 0xb4]
push edi
call fcn.004b1530
mov ecx, dword [esp + 0xe4]
mov edx, dword [ebp + 0x28]
add esp, 4
push ebx
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x2c]
mov esi, eax
mov eax, dword [0x10075e30]
mov eax, dword [eax + 0x3e4]
push ecx
push 1
push edx
mov edx, dword [esp + 0x120]
push edi
push esi
lea ecx, [esp + 0x40c]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call eax
cmp eax, 0xc0000004
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
je 0x4c235e
cmp eax, 0x80000005
je 0x4c235e
cmp eax, 0xc0000023
je 0x4c235e
cmp eax, ebx
jne 0x4c2370
cmp dword [esp + 0xe0], ebx
je 0x4c1c80
mov dword [esp + 0xe0], ebx
mov eax, dword [ebp + 0x28]
add eax, 0xfffffffe
cmp eax, 0x23
ja 0x4c223f
movzx edx, byte [eax + 0x1003c404]
jmp dword [edx*4 + 0x1003c3f0]
mov edi, dword [esp + 0x20]
add edi, 8
mov byte [esp + 0x65], bl
mov dword [esp + 0x60], edi
call dword [0x1005f060]
mov ecx, dword [edi + 8]
mov esi, eax
cmp esi, ecx
lea eax, [edi + 8]
mov dword [esp + 0xa8], eax
jne 0x4c226d
mov byte [esp + 0x65], bl
jmp 0x4c2293
mov edx, dword [eax]
test edx, edx
jne 0x4c2280
push ebx
push esi
push eax
call dword [0x1005f120]
test eax, eax
je 0x4c228e
mov eax, dword [esp + 0x60]
push esi
call fcn.00498e00
test al, al
je 0x4c2293
mov byte [esp + 0x65], 1
push 0x10
call fcn.004b1530
mov esi, dword [esp + 0x18]
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4c22f3
cmp dword [esp + 0xb4], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jbe 0x4c22f5
mov eax, dword [esp + 0xb4]
push eax
call fcn.004b1530
mov ecx, dword [esp + 0xb8]
mov dword [edi + 8], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
mov dword [edi + 0xc], ecx
jbe 0x4c22f5
mov edi, edi
mov dl, byte [eax + esi]
mov ecx, dword [edi + 8]
mov byte [eax + ecx], dl
add eax, 1
cmp eax, dword [edi + 0xc]
jb 0x4c22e0
jmp 0x4c22f5
xor edi, edi
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x2c], ebx
mov dword [edi + 4], ebx
jne 0x4c2308
mov dword [edi], ebx
mov dword [eax + 0x2c], edi
jmp 0x4c2313
mov ecx, dword [eax + 0x30]
mov dword [edi], ecx
mov edx, dword [eax + 0x30]
mov dword [edx + 4], edi
cmp byte [esp + 0x65], bl
mov dword [eax + 0x30], edi
je 0x4c1be5
mov eax, dword [esp + 0xa8]
push ebx
push eax
call dword [0x1005f124]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
jle 0x4c1be1
push eax
call dword [0x1005f1f8]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x10]
push ebx
push 1
push eax
call dword [0x1005f144]
jmp 0x4c1be1
add edi, 0x100
mov dword [esp + 0xb4], edi
jmp 0x4c1be5
mov ecx, dword [esp + 0x110]
mov edx, dword [0x10075e30]
mov eax, dword [edx + 0x204]
push ecx
call eax
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0x28]
add eax, 0xfffffffe
cmp eax, 0x23
ja 0x4c462b
movzx ecx, byte [eax + 0x1003c43c]
jmp dword [ecx*4 + 0x1003c428]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
call fcn.004c93c0
mov esi, dword [eax]
cmp esi, ebx
je 0x4c4609
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [ebp + 0x34]
mov dword [eax], ebx
mov eax, esi
call fcn.004bb8d0
test eax, eax
je 0x4c46d3
mov ecx, dword [ebp + 0x38]
mov dword [ecx], 0xc000000f
jmp 0x4c477f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x4c4645
mov ecx, dword [ebp + 0x34]
mov dword [ecx], 1
jmp 0x4c4683
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
mov dword [edx], 0xc000000d
je 0x4c4671
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ebx
push ecx
push edx
push eax
call dword [0x1005f0b8]
push eax
call dword [0x10075f60]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push eax
mov eax, dword [ebp + 8]
push ecx
call fcn.004c5440
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c4690
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4c46a4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0xd4]
push ecx
call fcn.004d2b40
mov eax, dword [esp + 0xd4]
cmp eax, ebx
je 0x4c1a5b
mov edi, dword [eax + 4]
call fcn.004b16a0
cmp edi, ebx
mov eax, edi
jne 0x4c46c0
jmp 0x4c1a5b
cmp byte [ebp + 0x30], bl
je 0x4c46df
mov eax, esi
call fcn.004bb7f0
mov eax, esi
call fcn.004bb940
test eax, eax
je 0x4c4704
mov edx, dword [ebp + 0x38]
neg edi
sbb edi, edi
and edi, 0x40000009
add edi, 0x80000006
mov dword [edx], edi
jmp 0x4c477f
lea eax, [esp + 0x114]
push eax
mov eax, esi
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
call fcn.004bb9b0
mov edi, dword [esp + 0x118]
cmp dword [ebp + 0x24], edi
jae 0x4c474c
mov eax, esi
call fcn.004bb710
cmp dword [ebp + 0x24], eax
mov edx, dword [ebp + 0x38]
sbb ecx, ecx
and ecx, 0x3fffffff
add ecx, 0x80000005
mov dword [edx], ecx
jmp 0x4c4773
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x114]
push eax
mov eax, edi
call fcn.004b1750
mov ecx, dword [ebp + 0x1c]
add esp, 4
mov eax, esi
mov dword [ecx + 4], edi
call fcn.004bb860
mov edx, dword [ebp + 0x38]
mov dword [edx], ebx
lea ecx, [esp + 0x114]
call fcn.00497cc0
cmp dword [esp + 0xe4], ebx
mov edi, dword [0x1005f0b4]
je 0x4c4798
mov eax, dword [esp + 0xe4]
push eax
call edi
cmp dword [ebp + 0x10], ebx
je 0x4c47a3
mov ecx, dword [ebp + 0x10]
push ecx
call edi
cmp dword [ebp + 0x14], ebx
je 0x4c47c2
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push edx
push eax
push ecx
call dword [0x1005f0b8]
push eax
call dword [0x10075f60]
mov edx, dword [ebp + 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ebx
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
call fcn.004c5440
cmp esi, ebx
je 0x4c47e5
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4c47f9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xc8]
cmp eax, ebx
je 0x4c4809
call fcn.004b16a0
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x4c4816
call fcn.004b16a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34