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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [str.TlsFree]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, ecx
mov dword [esp + 0x30], 0
push esi
push edi
mov edi, edx
mov dword [esp + 0x40], eax
mov edx, dword [eax]
xor esi, esi
lea eax, [esp + 0x80]
mov dword [esp + 0x44], 1
mov dword [esp + 0x1c], eax
xor cl, cl
mov dword [esp + 0x4c], edx
cmp dword [edx + 0xbc], 1
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov word [esp + 0x2c], si
jle 0x49d187
mov al, byte [edi]
test al, al
je 0x49d1ec
mov edx, edi
mov dword [esp + 0x3c], edx
nop word [eax + eax]
inc edi
cmp al, 0xa
je 0x49d0fb
mov al, byte [edi]
test al, al
jne 0x49d0f0
add esi, 3
cmp esi, dword [esp + 0x20]
jb 0x49d121
push 3
mov edx, 0x668dec
lea ecx, [esp + 0x1c]
call fcn.00478990
mov esi, dword [esp + 0x2c]
add esp, 4
mov edx, dword [esp + 0x3c]
jmp 0x49d13d
mov ecx, dword [esp + 0x1c]
mov ax, word [0x668dec]
mov dword [esp + 0x28], esi
mov word [esi + ecx - 3], ax
mov al, byte [0x668dee]
mov byte [esi + ecx - 1], al
mov ecx, edi
sub ecx, edx
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x20]
jb 0x49d15d
push ecx
lea ecx, [esp + 0x1c]
call fcn.00478990
mov esi, dword [esp + 0x2c]
add esp, 4
jmp 0x49d178
test ecx, ecx
je 0x49d178
mov esi, eax
sub eax, ecx
add eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x34], esi
call fcn.005cc9f0
add esp, 0xc
mov al, byte [edi]
test al, al
jne 0x49d0e4
jmp 0x49d527
mov eax, dword [esp + 0x40]
cmp word [eax + 0x10], si
jne 0x49d226
test edi, edi
je 0x49d1ec
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d1a0
sub ecx, edx
and ecx, 0x3fffffff
cmp ecx, 0x64
jb 0x49d1cc
push ecx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.00478990
mov esi, dword [esp + 0x2c]
add esp, 4
jmp 0x49d527
test ecx, ecx
je 0x49d1e8
push ecx
lea eax, [esp + 0x84]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x34], esi
call fcn.005cc9f0
add esp, 0xc
mov cl, byte [esp + 0x2d]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov byte [esi + eax], 0
test edx, edx
je 0x49d54e
test cl, 4
jne 0x49d54e
lea ecx, [esp + 0x18]
call fcn.00478a80
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.005b3650
mov esp, ebp
pop ebp
ret
mov dl, byte [edi]
test dl, dl
je 0x49d1ec
nop dword [eax]
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], ecx
test dl, dl
je 0x49d27a
lea edx, [esp + 0x48]
mov ecx, eax
call fcn.004f7b10
cmp dword [esp + 0x48], 0x99
mov edx, eax
mov ecx, dword [esp + 0x14]
je 0x49d276
mov eax, dword [esp + 0x34]
add ecx, edx
add eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
cmp byte [eax], 0
jne 0x49d244
jmp 0x49d27a
mov dword [esp + 0x30], edx
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x20]
jb 0x49d298
push ecx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.00478990
mov esi, dword [esp + 0x2c]
add esp, 4
jmp 0x49d2b3
test ecx, ecx
je 0x49d2b7
mov esi, eax
sub eax, ecx
add eax, dword [esp + 0x1c]
push ecx
push edi
push eax
mov dword [esp + 0x34], esi
call fcn.005cc9f0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add edi, ecx
test eax, eax
je 0x49d527
cmp byte [edi], 0x3f
jne 0x49d2e7
cmp eax, 1
jle 0x49d2e1
lea ecx, [edi + 1]
lea edx, [esp + 0x38]
call fcn.0047a830
mov eax, dword [esp + 0x38]
jmp 0x49d300
mov eax, dword [esp + 0x44]
jmp 0x49d2fc
push eax
mov eax, dword [esp + 0x44]
mov edx, edi
mov ecx, dword [eax + 0x80]
call fcn.0047b2f0
add esp, 4
mov dword [esp + 0x38], eax
add edi, dword [esp + 0x30]
lea ecx, [eax + 1]
mov dword [esp + 0x44], ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], edi
mov eax, dword [eax + 0x64]
lea eax, [eax + ecx*8]
movzx ecx, word [eax - 0x20]
add eax, 0xffffffd8
mov dword [esp + 0x34], eax
test cl, 1
je 0x49d364
add esi, 4
cmp esi, dword [esp + 0x20]
jb 0x49d351
push 4
mov edx, 0x6678b4
lea ecx, [esp + 0x1c]
call fcn.00478990
mov esi, dword [esp + 0x2c]
add esp, 4
jmp 0x49d51d
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x6678b4]
mov dword [esi + eax - 4], ecx
jmp 0x49d519
test cl, 0x24
je 0x49d375
push dword [eax + 4]
push dword [eax]
push 0x668c2c
jmp 0x49d38b
test cl, 8
je 0x49d3a1
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
push 0x668bcc
lea eax, [esp + 0x24]
push eax
call fcn.00479020
mov esi, dword [esp + 0x38]
add esp, 0x10
jmp 0x49d51d
test cl, 2
je 0x49d44c
mov edx, dword [esp + 0x4c]
mov cl, byte [edx + 0x4e]
mov byte [esp + 0x3c], cl
cmp cl, 1
je 0x49d417
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
push 0
push dword [esp + 0x40]
movq qword [esp + 0x78], xmm0
movaps xmmword [esp + 0x58], xmm0
movaps xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], edx
push dword [eax + 0xc]
mov edx, dword [eax + 0x10]
call fcn.00494db0
add esp, 0xc
test byte [esp + 0x58], 2
je 0x49d413
cmp byte [esp + 0x5a], 1
je 0x49d413
mov dl, 1
lea ecx, [esp + 0x50]
call fcn.004793d0
cmp eax, 7
jne 0x49d413
mov byte [esp + 0x2c], al
mov dword [esp + 0x20], 0
lea eax, [esp + 0x50]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [esp + 0x20]
push str.rename_error
push eax
call fcn.00479020
add esp, 0x10
cmp byte [esp + 0x3c], 1
je 0x49d505
lea ecx, [esp + 0x50]
call fcn.004946e0
mov esi, dword [esp + 0x28]
jmp 0x49d51d
test ecx, 0x4000
je 0x49d471
push dword [eax]
lea eax, [esp + 0x1c]
push 0x668df8
push eax
call fcn.00479020
mov esi, dword [esp + 0x34]
add esp, 0xc
jmp 0x49d51d
lea edx, [esi + 2]
cmp edx, dword [esp + 0x20]
jb 0x49d493
push 2
mov edx, 0x668e08
lea ecx, [esp + 0x1c]
call fcn.00478990
mov edx, dword [esp + 0x2c]
add esp, 4
jmp 0x49d4a7
mov eax, dword [esp + 0x1c]
mov cx, word [0x668e08]
mov dword [esp + 0x28], edx
mov word [edx + eax - 2], cx
mov eax, dword [esp + 0x34]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
test eax, eax
jle 0x49d4e9
mov edi, dword [esp + 0x34]
nop dword [eax]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + esi]
push eax
lea eax, [esp + 0x1c]
push 0x668e0c
push eax
call fcn.00479020
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x30]
jl 0x49d4c0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
lea esi, [edx + 1]
cmp esi, dword [esp + 0x20]
jb 0x49d50b
push 1
mov edx, 0x65ed14
lea ecx, [esp + 0x1c]
call fcn.00478990
add esp, 4
mov esi, dword [esp + 0x28]
jmp 0x49d51d
mov eax, dword [esp + 0x1c]
mov cl, byte [0x65ed14]
mov byte [esi + eax - 1], cl
mov dword [esp + 0x28], esi
mov dl, byte [edi]
test dl, dl
jne 0x49d230
cmp byte [esp + 0x2c], 0
je 0x49d566
test byte [esp + 0x2d], 4
je 0x49d546
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x49d546
mov ecx, dword [esp + 0x18]
call fcn.00476790
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.005b3650
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 0
je 0x49d54e
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x2d]
jmp 0x49d1f0